I want to follow my audit log live so I can watch for events, and pipe it through praudit to make it human readable. All commands below are run as root.
When I run tail -f /var/audit/current | praudit is just prints the last 5 lines and immediately exits. Whereas tail -f /var/audit/current | cat waits and prints out the raw audit log as it is written. What is the essential difference between praudit and cat? They both claim to read from stdin which they both appear to do, except praudit just gives up without waiting for an EOF? Or something?
Would love to know why this is the case, and if there's a way to get the behaviour I want somehow, preferably without having to modify praudit...
I'm on macOS 10.14.3