Skip to content

Worthies/Tailing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

tail

A drop-in replacement for the system tail command that also logs all output to the systemd journal.

Installation

cargo install --git https://github.com/worthies/tailing

Usage

# Pipe any command output through tail
some_command | tail

# View logs in journalctl
journalctl -f -t tailing

Features

  • 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

How It Works

  1. Reads stdin line by line
  2. For each line:
    • Logs to systemd journal via /usr/bin/logger -t tail-<PPID>
    • Pipes to /usr/bin/tail for standard output
  3. Tag is printed to stderr at startup

License

MIT

About

A wrapper of tail to send logs to journal tooπŸ‘πŸ‘πŸ‘

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages