lnav/test/formats/jsontest2/format.json
2022-04-12 16:07:13 -07:00

42 lines
1.0 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"
}
}
}
}