lnav/test/formats/nestedjson/format.json
2021-11-05 15:13:16 -07:00

28 lines
720 B
JSON

{
"ntest_log" : {
"title" : "Test JSON Log",
"json" : true,
"file-pattern" : "logfile_(nested|invalid)_json\\d*\\.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"
}
}
}
}