mirror of
https://github.com/tstack/lnav
synced 2024-11-15 18:13:10 +00:00
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
|
|
"json_log2": {
|
|
"title": "Test JSON Log with integer levels",
|
|
"json": true,
|
|
"file-pattern": "logfile_.*json2\\.json",
|
|
"description": "Test config",
|
|
"line-format": [
|
|
{
|
|
"field": "ts"
|
|
},
|
|
" ",
|
|
{
|
|
"field": "ts",
|
|
"timestamp-format": "abc %S def"
|
|
},
|
|
" ",
|
|
{
|
|
"field": "lvl",
|
|
"min-width": 5
|
|
},
|
|
" ",
|
|
{
|
|
"field": "cl",
|
|
"max-width": 5
|
|
},
|
|
" ",
|
|
{
|
|
"field": "msg"
|
|
}
|
|
],
|
|
"level-field": "lvl",
|
|
"level": {
|
|
"info": 0,
|
|
"error": 10
|
|
},
|
|
"timestamp-field": "ts",
|
|
"body-field": "msg",
|
|
"value": {
|
|
"user": {
|
|
"kind": "string",
|
|
"identifier": true
|
|
},
|
|
"cl": {
|
|
"kind": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|