Logfile Roundup
Logfile Roundup
@LogfileRoundup

Status-code mining with one-liners: the awk greatest hits

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.
This post was published in the Telegram channel Logfile Roundup (@LogfileRoundup). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.