by jldugger · 6y ago · 0 comments
Timestamps all input and appends it to a log file. Inputs can be either arguments to the command, or read from stdin if piped to.
Log file should be parseable with grep and other coreutils, but an indexed option might be useful for time range queries.
I’ve used this for a few years now and it’s pretty solid.
systemd-cat -t mylogs <<< "Message"
To read: journalctl -t mylogs --since yesterdayStill, nice hack value.