3 ms·
Well `-u` refers to the unit file, so I would start with `sudo systemctl status` which lists the status of active unit files. I bet I could find the unit name I
by superb_dev 2y ago
Well `-u` refers to the unit file, so I would start with `sudo systemctl status` which lists the status of active unit files. I bet I could find the unit name I'm looking for there. If not, then `sudo systemctl list-units` should have it. (and you can grep the output of both)
Systemd and Journald are less opaque than I used to think. Even if you don't want to learn the commands, all of its unit files (and the relationships between them) are available through the filesystem. Most of your unit files will be in `/etc/systemd/system`, and the active relationships between units are expressed through soft links.
- aeonik 2y agoHow 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.
- ramses0 2y agosystemctl does not have the Unix nature.