A drop-in replacement for the system tail command that also logs all output to the systemd journal.
cargo install --git https://github.com/worthies/tailing# Pipe any command output through tail
some_command | tail
# View logs in journalctl
journalctl -f -t tailing- Drops in as a replacement for
/usr/bin/tail - Logs all input lines to systemd journal with identifier
tail-<PPID> - Streams input in real-time (line-by-line)
- Prints the tag to stderr for easy identification
- Reads stdin line by line
- For each line:
- Logs to systemd journal via
/usr/bin/logger -t tail-<PPID> - Pipes to
/usr/bin/tailfor standard output
- Logs to systemd journal via
- Tag is printed to stderr at startup
MIT