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

Journal Log Entry Suppresion for Sysstat Service #333

Open
greypenwriter opened this issue Aug 12, 2022 · 1 comment
Open

Journal Log Entry Suppresion for Sysstat Service #333

greypenwriter opened this issue Aug 12, 2022 · 1 comment

Comments

@greypenwriter
Copy link

Hi Sysstat Team,

Would there be a way to suppress the systemd entries for sysstat? I've tried the below with no luck.

I've based the below information on freedesktop systemd.exec documentation

Suppress standard out/err
[Service] ... StandardOutput=null StandardError=null

Modifying Log Level to only Error or Alert etc.
[Service] SyslogLevel=err

All of the above
[Service]
...
SyslogLevel=err
StandardOutput=null
StandardError=null
`

Thank you :)

@ferdnyc
Copy link
Contributor

ferdnyc commented Sep 1, 2022

@greypenwriter

What kind of journal messages are you getting? On my Fedora system, using the distro package which appears to include the standard unit files (same as this repo), none of the units output anything to the journal. The only messages are things like:

Jul 06 08:37:06 systemd[1]: Starting sysstat.service - Resets System Activity Logs...
Jul 06 08:37:06 systemd[1]: Finished sysstat.service - Resets System Activity Logs.
Jul 11 15:17:37 systemd[1]: sysstat.service: Deactivated successfully.
Jul 11 15:17:37 systemd[1]: Stopped sysstat.service - Resets System Activity Logs.
Sep 01 04:16:55 systemd[1]: Starting sysstat-collect.service - system activity accounting tool...
Sep 01 04:16:55 systemd[1]: sysstat-collect.service: Deactivated successfully.
Sep 01 04:16:55 systemd[1]: Finished sysstat-collect.service - system activity accounting tool.

Because those come from the systemd process, I'm guessing they'd have to be suppressed in the systemd configuration, not the unit file. Assuming it's even possible to suppress them.

Or are you getting some other messages generated by a sysstat unit, that I'm not experiencing?

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

No branches or pull requests

2 participants