lnav/test/formats/nestedjson/format.json
Timothy Stack 73e902f7d8 [json-log] handle invalid json log lines
Header from folded patch 'foldme1.patch':

[local] foldme
2019-09-03 06:19:57 -07:00

28 lines
714 B
JSON

{
"ntest_log" : {
"title" : "Test JSON Log",
"json" : true,
"file-pattern" : "logfile_(nested|invalid)_json\\.json",
"description" : "Test config",
"line-format" : [
{ "field" : "ts" },
" ",
{ "field" : "@fields/lvl" },
" ",
{ "field" : "@fields/msg" }
],
"level-field" : "@fields/lvl",
"timestamp-field": "ts",
"body-field" : "@fields/msg",
"value" : {
"@fields/user" : {
"kind" : "string",
"identifier" : true
},
"@fields/trace#" : {
"kind" : "string"
}
}
}
}