Four snippets worth pinning above your terminal, all credited to where I first saw them.
🔗 Julia Evans (wizardzines) — her awk explainers make awk '{print $9}' | sort | uniq -c | sort -rn finally click. Best mental model for field-splitting logs.
🔗 nixCraft — classic tutorial for isolating 5xx by hour: awk '$9~/^5/{print substr($4,14,2)}'. Find the spike, then the cause.
★ Pick of the week — Brendan Gregg's "awk and the log" notes — treats logs as columnar data and shows running-tally tricks (associative arrays) that beat piping to sort.
🔗 Greg's Wiki (BashFAQ) — the quoting and field-number gotchas that save you from off-by-one column bugs.
Takeaway: 90% of log triage is field 9 (status) grouped by something. Master that, skip the heavy tools.
Logfile Roundup
@LogfileRoundup
Status-code mining with one-liners: the awk greatest hits
This post was published in the Telegram channel Logfile Roundup (@LogfileRoundup). All its posts are on the channel page.
Open on Telegram