Logfile Roundup
Logfile Roundup
@LogfileRoundup

<b>awk one-liners for status-code mining</b>

<b>awk one-liners for status-code mining</b>

Four hand-picked snippets that turn a raw access log into a status report in seconds. Credit to the authors who shared them.

→ Julia Evans' 'awk for log files' explainers — the gentlest intro to <code>$9</code> being the status field in Combined format.
Takeaway: learn field positions once, reuse forever.

⭐ Pick of the week: the count-by-status idiom from nixCraft —
<code>awk '{print $9}' access.log | sort | uniq -c | sort -rn</code>
Instant histogram of 200 vs 301 vs 404 vs 5xx.
Takeaway: this is your first command on any new log.

→ The Grymoire awk tutorial (Bruce Barnett) — for when you need conditional sums, e.g. bytes served only on 200s.

→ Brendan Gregg's notes on awk associative arrays — group 404s by URL without loading anything into a database.

Every one of these runs on a stock server, no installs.
Этот пост опубликован в Telegram-канале Logfile Roundup. Подписаться можно по ссылке: @LogfileRoundup.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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