Last active
July 4, 2025 14:39
-
-
Save vanWittlaer/3d8eeb0749a19857a6f36277fa5c421e to your computer and use it in GitHub Desktop.
dozzle SQL Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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