Skip to content

Use journald input by default when running system integration for SLES 15-SP6 #13759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pierrehilbert
Copy link
Contributor

@pierrehilbert pierrehilbert commented May 2, 2025

Proposed commit message

Use journald input by default when running system integration for SLES 15-SP6.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@pierrehilbert pierrehilbert added enhancement New feature or request Team:Elastic-Agent-Data-Plane Agent Data Plane team [elastic/elastic-agent-data-plane] labels May 2, 2025
@pierrehilbert pierrehilbert requested review from a team as code owners May 2, 2025 07:02
@elasticmachine
Copy link

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@pierrehilbert pierrehilbert requested review from rdner, cmacknz and faec May 2, 2025 07:03
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@andrewkroh andrewkroh added Integration:system System Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels May 2, 2025
@rdner
Copy link
Member

rdner commented May 6, 2025

@pierrehilbert there are not testing steps in the description.

Was it tested or you would like me to run the tests?

@pierrehilbert
Copy link
Contributor Author

@amolnater-qasource tested the fix by manually changing the configuration here: #13752 (comment)

But always great to have more folks confirming this is working the correct way.

@elasticmachine
Copy link

💚 Build Succeeded

History

@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.0.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is not a bugfix but a behaviour change (default change based on new condition), I think we should do a minor upgrade (2.0.0 -> 2.1.0) instead of a patch upgrade (2.0.0 -> 2.0.1)

- version: "2.0.1"
changes:
- description: Change default to use journald input for SLES 15 SP6.
type: enhancement
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me this looks to be a bugfix, since we don't support logfile for sles since the very beginning. Just that we had not added that to our config.

Suggested change
type: enhancement
type: bugfix

@ishleenk17
Copy link
Contributor

@pierrehilbert
Also, there might be more such platform/os_version combinations we might have missed/not known.
We always have the condition config option for the user to change that. So I don't think this should be a concern. WDYT ?
Current behaviour if in case these log inputs are used is that just they won't see any logs, is that right?

type: text
multi: false
required: false
show_user: true
default: ${host.os_version} == "12 (bookworm)" or (${host.os_platform} == "amzn" and ${host.os_version} == "2023")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq: Why just SLES 15 (SP6)? I assume journald is primary logging system for other service packs as well other versions of SLES?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, could probably be replaced by startsWith(${host.os_version}, "15") == true

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://documentation.suse.com/sles/12-SP5/html/SLES-all/cha-journalctl.html (see first line)

Also SLES 12. SLES 12 onwards, they are using journal. SLES 13, 14 doesn't exist. So I think we should handle SLES 12 and 15 with startsWith

https://www.theregister.com/2018/06/25/suse_linux_enterprise_15/

^ Reason why they skipped 13 and 14

SUSE jumped from SLES 12 to 15 as both 13 and 14 are unlucky numbers. While many are aware of the negative connotations attached to the number 13, in China, 14 is also considered unlucky. This is because the number 4 in Chinese (四, pinyin: sì; Cantonese Yale: sei) is almost homophonous to the word for 'death' (死 pinyin: sǐ; Cantonese Yale: séi). Therefore, SUSE was asked not to use these numbers by partners and customers alike.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the condition we want to catch the point where an existing OS release no longer included syslog by default, not just the point where journald was available.

For existing OS releases that included both syslog and journald, this integration is working without issue by reading from the syslog files. We could switch from syslog to journald there but it opens us to the chance that it breaks something unexpectedly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:system System Team:Elastic-Agent-Data-Plane Agent Data Plane team [elastic/elastic-agent-data-plane] Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SLES 15]: No "system.auth" logs for system integration under Data Streams tab for SLES 15 linux agent.
7 participants