Skip to content
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

Use systemd_journald receiver by default on Linux #822

Open
jeremyvisser opened this issue Sep 1, 2022 · 2 comments
Open

Use systemd_journald receiver by default on Linux #822

jeremyvisser opened this issue Sep 1, 2022 · 2 comments
Labels
feature New feature or request

Comments

@jeremyvisser
Copy link

Since Ops Agent effectively only ships with systemd support on Linux, I think it makes sense to change to using the systemd_journald receiver by default instead of the files receiver.

The deb/rpm packages only ship with systemd unit files, not sysvinit scripts. RHEL 7+ requires systemd, Debian Jessie and above have started to remove sysvinit scripts from packages. It's a reasonable expectation that ~everyone using Ops Agent on Linux will be doing so on systemd with journald.

Using the systemd_journald receiver gives significantly richer log fields, which makes filtering and searching in Cloud Logging much more convenient.

So I propose this part of the default config from...

logging:
  receivers:
    syslog:
      type: files
      include_paths:
      - /var/log/messages
      - /var/log/syslog

...to:

logging:
  receivers:
    syslog:
      type: systemd_journald
@igorpeshansky igorpeshansky added the feature New feature or request label Sep 1, 2022
@igorpeshansky
Copy link
Member

This will break backward compatibility, so we should consider this for the next major version. @qingling128 FYI.

@qingling128
Copy link
Contributor

Created an internal tracker: b/244786954

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants