lnav/test/formats/jsontest2/format.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"
}
}
}
}