parent
75c825924b
commit
129625820b
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ Example LogQL queries in Grafana Explore (Loki data source):
|
||||||
```
|
```
|
||||||
{container="quartermaster"} | json
|
{container="quartermaster"} | json
|
||||||
{container="quartermaster", event="http_request", status=~"5.."}
|
{container="quartermaster", event="http_request", status=~"5.."}
|
||||||
{container="quartermaster", event="month_closed"} | json | line_format "{{.path}} {{.message}}"
|
{container="quartermaster", event="month_closed"} | json | line_format "{{.year_month}} {{.message}}"
|
||||||
```
|
```
|
||||||
|
|
||||||
HTTP access logs appear as `event="http_request"` with `method`, `path`,
|
HTTP access logs appear as `event="http_request"` with `method`, `path`,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"disable_existing_loggers": false,
|
"disable_existing_loggers": false,
|
||||||
"formatters": {
|
"formatters": {
|
||||||
"json": {
|
"json": {
|
||||||
"()": "pythonjsonlogger.jsonlogger.JsonFormatter",
|
"()": "pythonjsonlogger.json.JsonFormatter",
|
||||||
"fmt": "%(asctime)s %(levelname)s %(name)s %(message)s",
|
"fmt": "%(asctime)s %(levelname)s %(name)s %(message)s",
|
||||||
"rename_fields": {
|
"rename_fields": {
|
||||||
"asctime": "timestamp",
|
"asctime": "timestamp",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue