Skip to content

Instantly share code, notes, and snippets.

@vanWittlaer
Last active July 4, 2025 14:39
Show Gist options
  • Save vanWittlaer/3d8eeb0749a19857a6f36277fa5c421e to your computer and use it in GitHub Desktop.
Save vanWittlaer/3d8eeb0749a19857a6f36277fa5c421e to your computer and use it in GitHub Desktop.
dozzle SQL Example
-- list all docker log entries with particular status code
SELECT
STRFTIME(TO_TIMESTAMP(ts )::TIMESTAMP,'%Y-%m-%d %H:%M:%S') AS datetime,
request.headers."X-Real-Ip" as source,
request.method,
status,
request.host as target,
request.uri,
request.headers."User-Agent" as userAgent
FROM logs
WHERE logger = 'http.log.access'
AND request.uri != '/api/_info/health-check'
AND status >= 200
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment