Playbook: stand up a BigQuery log pipeline
Four references for moving from grep-on-a-box to queryable logs.
→ Google Cloud's log sink docs — route Cloud Logging straight to a BigQuery dataset with a single sink. Takeaway: partition by ingestion date or your scans get expensive fast.
→ Distilled / Builtvisible's classic log-to-BigQuery write-up — the schema for parsing Apache lines into typed columns. Takeaway: store status and bytes as INT64, not strings.
★ Pick of the week — JR Oakes' SQL for crawl frequency by URL — a GROUP BY url, DATE that gives days-between-crawls per page. Takeaway: this single query replaces a week of spreadsheet work.
→ dbt log-parsing example repos — regex extraction in a model so transforms stay version-controlled. Takeaway: keep the UA-parsing logic in one place.
Partition and cluster up front — retrofitting a 100GB table hurts.
Logfile Roundup
@LogfileRoundup
Playbook: stand up a BigQuery log pipeline
Этот пост опубликован в Telegram-канале Logfile Roundup. Подписаться можно по ссылке: @LogfileRoundup.