lnav/test/formats/jsontest/format.json
2019-07-11 14:59:54 -07:00

36 lines
879 B
JSON

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