Article 5FK0Q How to silence sysstat-collect.service?

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:
systemd[1]: sysstat-collect.service: Succeeded.
systemd[1]: Started system activity accounting tool.
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,
SHlatest?d=yIl2AUoC8zA latest?i=l_1C02hK-Ok:1VyM_fmgHeU:F7zBnMy latest?i=l_1C02hK-Ok:1VyM_fmgHeU:V_sGLiP latest?d=qj6IDK7rITs latest?i=l_1C02hK-Ok:1VyM_fmgHeU:gIN9vFwl_1C02hK-Ok
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments