lnav/test/formats/jsontest/format.json

37 lines
944 B
JSON
Raw Normal View History

{
"$schema": "https://lnav.org/schemas/format-v1.schema.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" : {
"msg" : {
"rewriter" : ";SELECT :msg || 'bork bork bork'"
},
2020-04-23 13:42:48 +00:00
"arr" : {
"kind" : "json"
},
2020-04-23 13:42:48 +00:00
"obj" : {
"kind" : "json"
2020-04-23 13:42:48 +00:00
},
"user" : {
"kind" : "string",
"identifier" : true,
"rewriter" : "|rewrite-user"
}
}
}
}