Of course decent log collection/monitoring should also be able to catch authlog stuff and alert accordingly and I'm sure most organizations rely on solutions like that instead of letting things get lost in email
Potentially terrifying if you don't
But there is a renewed focus on corporate laptops to remove admin rights on windows. I'm sure this will come to Linux too at some point
In other words, don't think well-configured ansible playbooks are most people's first exposure to linux although it does sound like you're doing things right which is nice to hear
In a lot of companies but one they avoided it for fear of receiving emails. On that only company that did it, we made sure that mailbox was clean by actually having a look when cron scripts were crapping out or when users failed sudo repeatedly and contacted the users. It was a much better housekeeping than log on a box and see there are hundreds of unread emails but dismissing it like most do.
journalctl /bin/su
can, to avoid ambiguity, also be written as journalctl _EXE=/bin/su
See systemd.journal-fields(7) for more information: https://manpages.debian.org/stable/systemd/systemd.journal-f...* Automatic log cleanup to a desired storage size.
* Automatic compression, transparent decompression.
* Filtering by date, or boot number.
* Log shipping, ability to see interleaved logs from multiple machines.
* Microsecond precision for timestamps, multiple timestamp types and output formats.
* Output in JSON or multiple other formats, for trivial parsing.
* Cursors, for easily continuing parsing where you left off.
* Applications can log custom fields. No need to extract data from strings then.
* Captures logs that happen inside initramfs before / is mounted.
* Docker containers can log to the host's journald
It's pretty darn nice, really.
[1] https://man.openbsd.org/security.8
[2] https://man.openbsd.org/doas