PYGTAIL(1)

πŸ“¦
version 0.6.1 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

ok so bestie, meet pygtail β€” she reads log file lines that have not been read. that's it, that's the whole job, and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

pygtail [options] logfile

🌸 DESCRIPTION 🌸

She prints the log file lines that have not been read yet. Like a lil bookmark for your logs β€” you look away, stuff gets logged, you come back and she hands you only the new bits. no re-reading the whole thing, no scrolling through ancient drama. obsessed. πŸ¦‹


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” shows this help message and dips. the classic "wait what does this do again" button πŸ™ˆ
  • -o OFFSET_FILE, --offset-file=OFFSET_FILE β€” the file where offset data gets written. the default is <logfile>.offset, so like, your logfile but with .offset tacked on the end. that's her lil memory keeper πŸ’–
  • -p, --paranoid β€” updates the offset file every single time she reads a line. yes, every one. as opposed to only when we reach the end of the file. she's anxious but she's thorough, and honestly? respect 🫢
  • -n EVERY_N, --every-n=EVERY_N β€” updates the offset file every n'th time we read a line, instead of only when we reach the end of the file. so you pick your own level of commitment. not too paranoid, not too chill. balance ✨
  • --no-copytruncate β€” don't support copytruncate-style log rotation. instead, if the log file shrinks, she'll print a warning at you. so like, heads up: this is the "no, I don't do that rotation trick" flag, and the fallback is a warning, not a fix. lowkey important, don't skip it πŸ’€
  • --version β€” prints the version and exits. bye πŸ‘‹
no cap: --paranoid and --every-n are both about when the offset file gets saved. default vibe = save only at end of file. these two make her save more often, just at different rhythms. and --no-copytruncate changes what happens when the log shrinks β€” warning instead of support. keep those straight, bestie 🧠

🌈 that's the whole page, periodt 🌈

this was pygtail 0.6.1, from June 2022 β€” go forth and tail your logs like the main character you are πŸ‘‘πŸ’œπŸ“


πŸ“¦ where this page comes from