lnav/test/formats/nestedjson/format.json

28 lines
716 B
JSON
Raw Normal View History

{
"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"
}
}
}
}