# PostgreSQL jsonlog

> jsonlog is a PostgreSQL log_destination setting that writes server log entries as JSON, one object per line.

Source: https://sqleye.com/docs/glossary/jsonlog/ · Last updated: 2026-11-29 · Publisher: CodeROG (https://coderog.com)

jsonlog is a value of PostgreSQL's log_destination setting that writes server log entries in JSON format, which the PostgreSQL documentation describes as convenient for loading logs into programs. It requires the logging collector to be enabled, and the JSON file name is the log file name with a .json suffix.

SQLEye uses it as its PostgreSQL capture source. When capture is on, it sets log_destination to jsonlog, turns the logging collector on and sets log_min_duration_statement to 0 so every statement is logged with its duration. It then tails the log file and turns each entry into an event. The file names use the weekday and are truncated on rotation, so old logs are overwritten.

Because the log lives on disk in the instance's logs folder, it contains statement text while capture is on. SQLEye requires PostgreSQL 15 or later, which covers every version in its catalogue. See [Capture](/docs/live-eye/capture/) and [Privacy and data](/docs/privacy-and-data/).
