Format access log panel to show real client IPs
Update the Docs APM dashboard's log panel to parse JSON and display clean formatted lines with client_ip instead of raw JSON blobs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f13bd7fca6
commit
38500704a6
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ data:
|
|||
"wrapLogMessage": false
|
||||
},
|
||||
"targets": [
|
||||
{ "datasource": { "type": "loki", "uid": "loki" }, "expr": "{instance=\"flyio-proxy\", job=\"flyio-nginx\"} |= \"docs.eblu.me\"", "refId": "A" }
|
||||
{ "datasource": { "type": "loki", "uid": "loki" }, "expr": "{instance=\"flyio-proxy\", job=\"flyio-nginx\"} |= \"docs.eblu.me\" | json | line_format \"{{.client_ip}} {{.request_method}} {{.request_uri}} {{.status}} cache={{.upstream_cache_status}} {{.request_time}}s\"", "refId": "A" }
|
||||
],
|
||||
"title": "Recent Access Logs",
|
||||
"type": "logs"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue