3 ms·
How would you exclude certain units from your logs? Let's say that Auditd is spamming your logs, and you just want to exclude those? Can you filter on search?
by aeonik 2y ago
How would you exclude certain units from your logs? Let's say that Auditd is spamming your logs, and you just want to exclude those?
Can you filter on search? How do you prevent applications from writing to Systemd at all?
- superb_dev 2y agoI would start with `man systemd`, or maybe `journalctl —help`. If you don’t want a service to log to systemd, then don’t run it in systemd?
- pcthrowaway 2y agoI think you can also configure the journal per unit right? Don't remember how exactly, at the very least you can stream logs to a different system. There are also services which will just use their own logging convention for some reason. Honestly it's easier just to go with journalctl for everything you can.