2017-04-07 06:05:20 +00:00
|
|
|
{
|
2022-04-12 23:07:13 +00:00
|
|
|
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
|
2017-04-07 06:05:20 +00:00
|
|
|
"json_log3": {
|
|
|
|
"title": "Test JSON Log Format",
|
|
|
|
"description": "Test JSON Log Format",
|
2022-09-25 04:19:20 +00:00
|
|
|
"file-pattern": "logfile_.*json3\\.json",
|
2017-04-07 06:05:20 +00:00
|
|
|
"json": true,
|
|
|
|
"hide-extra": true,
|
2022-09-03 06:06:03 +00:00
|
|
|
"convert-to-local-time": true,
|
2017-04-07 06:05:20 +00:00
|
|
|
"line-format": [
|
|
|
|
{
|
|
|
|
"field": "__timestamp__"
|
|
|
|
},
|
|
|
|
" ",
|
|
|
|
{
|
|
|
|
"field": "client_ip"
|
|
|
|
},
|
|
|
|
" ",
|
|
|
|
{
|
|
|
|
"field": "request/method"
|
|
|
|
},
|
|
|
|
" ",
|
|
|
|
{
|
|
|
|
"field": "response/status"
|
|
|
|
},
|
|
|
|
" ",
|
2023-04-29 23:13:42 +00:00
|
|
|
{
|
|
|
|
"field": "response/size",
|
|
|
|
"auto-width": true
|
|
|
|
},
|
|
|
|
" ",
|
2017-04-07 06:05:20 +00:00
|
|
|
{
|
|
|
|
"field": "request/uri"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"value": {
|
|
|
|
"started_at": {
|
|
|
|
"kind": "integer",
|
|
|
|
"identifier": true
|
|
|
|
},
|
|
|
|
"client_ip": {
|
|
|
|
"kind": "string",
|
|
|
|
"identifier": true
|
|
|
|
},
|
|
|
|
"request/method": {
|
|
|
|
"kind": "string",
|
|
|
|
"identifier": true
|
|
|
|
},
|
|
|
|
"request/uri": {
|
|
|
|
"kind": "string",
|
|
|
|
"identifier": true
|
|
|
|
},
|
|
|
|
"request/size": {
|
|
|
|
"kind": "integer",
|
|
|
|
"identifier": false,
|
|
|
|
"hidden": true
|
|
|
|
},
|
|
|
|
"response/status": {
|
2023-04-29 23:13:42 +00:00
|
|
|
"kind": "integer",
|
|
|
|
"foreign-key": true
|
|
|
|
},
|
|
|
|
"response/size": {
|
|
|
|
"kind": "integer"
|
2018-11-26 18:30:27 +00:00
|
|
|
},
|
2022-09-03 06:06:03 +00:00
|
|
|
"details1": {
|
2018-11-26 18:30:27 +00:00
|
|
|
"hidden": true
|
|
|
|
},
|
2022-09-03 06:06:03 +00:00
|
|
|
"details2": {
|
2018-11-26 18:30:27 +00:00
|
|
|
"hidden": true
|
|
|
|
},
|
2022-09-03 06:06:03 +00:00
|
|
|
"details3": {
|
2018-11-26 18:30:27 +00:00
|
|
|
"hidden": true
|
2017-04-07 06:05:20 +00:00
|
|
|
}
|
|
|
|
},
|
2022-09-03 06:06:03 +00:00
|
|
|
"timestamp-field": "started_at",
|
|
|
|
"timestamp-divisor": 1000,
|
2017-04-07 06:05:20 +00:00
|
|
|
"level-field": "response/status",
|
|
|
|
"level": {
|
|
|
|
"info": "2\\d+",
|
|
|
|
"warning": "4\\d+",
|
|
|
|
"critical": "5\\d+"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|