How to silence sysstat-collect.service?
by Sheriff Hobbes from LinuxQuestions.org on (#5FK0Q)
Good afternoon!
The sar tool collects load values every 10 minutes on my Oracle Linux 8.3 via the service sysstat-collect.service. It fills /var/log/messages with
Quote:
every 10 minutes. That's annoying, I want to silence it. I've already tried three possible solutions which did not work:
1. Adding the override
Code:[Service]
StandardOutput=nullto the systemd unit
2. Adding the override
Code:[Service]
LogLevelMax=warningto the systemd unit
3. Changing the command to
Code:ExecStart=/bin/sh -c '/usr/lib64/sa/sa1 1 1 > /var/log/sysstat-collect'in the systemd unit
Any ideas?
Thanks,
SH


The sar tool collects load values every 10 minutes on my Oracle Linux 8.3 via the service sysstat-collect.service. It fills /var/log/messages with
Quote:
systemd[1]: sysstat-collect.service: Succeeded. systemd[1]: Started system activity accounting tool. |
1. Adding the override
Code:[Service]
StandardOutput=nullto the systemd unit
2. Adding the override
Code:[Service]
LogLevelMax=warningto the systemd unit
3. Changing the command to
Code:ExecStart=/bin/sh -c '/usr/lib64/sa/sa1 1 1 > /var/log/sysstat-collect'in the systemd unit
Any ideas?
Thanks,
SH