# Query capture

> Capture is SQLEye's per-instance switch that records the statements a database runs, off by default.

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

Capture is SQLEye's per-instance switch that records the statements a database server runs and streams them to the Live screen. It is off by default and can only be enabled while the instance is running.

Turning capture on changes the server's logging configuration: PostgreSQL logs every statement as JSON, and MySQL keeps statement history in performance_schema. That costs the database some throughput. Turning capture off restores the server's normal configuration, and nothing runs in the background.

Captured events are held in a bounded [ring buffer](/docs/glossary/ring-buffer/) in memory, 50,000 per instance by default, and are not saved across restarts. SQL text is truncated at 8 KB. See [Capture](/docs/live-eye/capture/) and [Settings](/docs/settings/).
