lnav/test/formats/jsontest/format.json

37 lines
896 B
JSON

{
"test_log" : {
"title" : "Test JSON Log",
"json" : true,
"file-pattern" : "logfile_json\\.json",
"description" : "Test config",
"line-format" : [
{ "field" : "ts" },
" ",
{ "field" : "lvl" },
" ",
{ "field" : "msg" }
],
"level-field" : "lvl",
"timestamp-field": "ts",
"body-field" : "msg",
"value" : {
"user" : {
"kind" : "string",
"identifier" : true
},
"msg" : {
"rewriter" : ";SELECT :msg || 'bork bork bork'"
},
"user" : {
"rewriter" : "|rewrite-user"
},
"obj" : {
"kind" : "json"
},
"arr" : {
"kind" : "json"
}
}
}
}