~/talk

Logging Not Just for Lumberjacks

Talkat Postgres Open 2012 · 2012-09-17..09-19· [databases]
links:none on file
slides:none on file

PostgreSQL logging turns on with one config change and rotates by default daily or at 10MB, so expect many files unless rotation/cleanup is scripted. Choose destination: eventlog on Windows, stderr, csvlog (easy to load into a table), or syslog for centralization. Use log_line_prefix with timestamp and pid so log_min_duration_statement can match durations to statements. Tools include tail/grep, Splunk/Logstash, and parsers like pg_badger (far faster than older php tools on large logs); auto_explain works but inflates logs.

AI-written summary · about

  1. 0:00PostgreSQL logging basics
  2. 1:05Logs for troubleshooting and compliance
  3. 2:07Default logging setup
  4. 5:43Custom logging parameters
  5. 7:28What to log: connections, DDL, prefix
  6. 11:03When to log: levels and long queries
  7. 13:54Where to log: destinations
  8. 19:34Tools for log analysis
  9. 27:23Automated reporting with Splunk, Logstash
  10. 31:22PostgreSQL log parsers: pg Fuen, pg Badger
  11. 35:17Tweaking: SQL state codes, user logging, auto_explain
  12. 38:49Safety tips for logs and config
  13. 40:12Conclusion and contest
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.