Logfile Roundup
Logfile Roundup
@LogfileRoundup

Knowing your log format before you parse

Knowing your log format before you parse

Garbage parsing comes from guessing the format. Four references that decode what each field actually is.

→ Apache's mod_log_config docs — every % directive, so Combined vs Common is never ambiguous.
Takeaway: %h %l %u %t "%r" %>s %b is Common; Combined adds referer + UA.

→ Nginx's log_format reference — the default differs subtly from Apache; $request packs method+URI+protocol.

⭐ Pick of the week: the W3C Extended Log File Format spec — for IIS and CDN logs where fields are self-describing in the header line.
Takeaway: read the #Fields: directive, never assume column order.

→ MaxMind's notes on the X-Forwarded-For trap — behind a proxy, $remote_addr is the CDN, not the visitor.

Source credit: Apache, Nginx, W3C, MaxMind docs.
Этот пост опубликован в Telegram-канале Logfile Roundup. Подписаться можно по ссылке: @LogfileRoundup.
tech

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

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

start

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

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

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