linescroll(1)

πŸ’– linescroll(1) β€” User Manual πŸ’–

okay bestie, buckle up, because linescroll is literally the cutest little log-monitoring tool and you're gonna be obsessed πŸ’…


✨ NAME ✨

linescroll β€” a tool to monitor log files 🌸


πŸŽ€ SYNOPSIS πŸŽ€

linescroll [OPTION] [FILE]...

πŸ¦‹ DESCRIPTION πŸ¦‹

It shows you the line flow rate in your file(s) or from stdin. That's it. That's the whole vibe. πŸ“ˆ

  • -c/--combine β€” all input sources get smushed into one single source 🫢
  • -l/--limit ITERATIONS β€” dip out after ITERATIONS cycles
  • -s/--speedonly β€” don't print graphs, just the speed, no cap
  • -p/--print ITERATIONS β€” print only every ITERATIONS'th stats
  • -f/--filename β€” print filename headings
  • -a/--noaxislimit β€” do not print the axis limits
  • -n/--noclear β€” do not clear the screen between prints
  • -r/--raw β€” treat input lines as values to add to counter
  • -h/--help β€” print help

🌈 USAGE 🌈

linescroll can be used to show how much activity happens in log files or program output. fr fr. πŸ‘‘

Bash can be used in conjunction to capture several programs as arguments for linescroll. iykyk 🧚

stdin can be used as a pipe if no other files are given as arguments, or if the special filename - is used. πŸ’œ


⭐ EXAMPLE ⭐

Show relative difference of (un-)cached traffic:

linescroll \
    <( varnishncsa -F '"%{Varnish:hitmiss}x"' | grep    '"hit"$' ) \
    <( varnishncsa -F '"%{Varnish:hitmiss}x"' | grep -v '"hit"$' )

Or just rate of traffic through the cache via stdin:

varnishncsa -F '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" "%{Varnish:hitmiss}x"' | linescroll

Build a graph of stats for email:

( printf "From: cache@darkstar\nTo: super@webmasters\nSubject: cache effectiveness snapshot\n\n";
linescroll --limit 60 --print 60 \
    <( varnishncsa -F '"%{Varnish:hitmiss}x"' | grep    '"hit"$' ) \
    <( varnishncsa -F '"%{Varnish:hitmiss}x"' | grep -v '"hit"$' )
) | /usr/sbin/sendmail -fcache super@webmasters

πŸ’… OPTIONS πŸ’…

  • -c, --combine β€” combine all file source metrics 🫢
  • -l, --limit ITERATIONS β€” stop after number of iterations (default never) 😭
  • -s, --speedonly β€” no graph, speed only ✨
  • -p, --print ITERATIONS β€” print only every Nth iteration πŸ“
  • -f, --filename β€” print filename headings πŸ“
  • -h, --help β€” print usage help πŸ™ˆ
  • -n, --noclear β€” do not clear screen between draws 🌸
  • --nofollow β€” do not follow file renames πŸ”₯
  • -v, --version β€” display version number ⭐
  • -r, --raw β€” input is metric πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

Ed Neville (ed-linescroll@s5h.net).


bestie this whole thing is linescroll 0.2.0, dated 04 September 2023, and it's giving main character energy πŸ’– that's the sign-off, mwah, go monitor some logs βœ¨πŸ¦‹πŸŽ€
πŸ“¦ where this page comes from