mirror of
https://github.com/tstack/lnav
synced 2024-11-01 21:40:34 +00:00
04da95eb95
Fixes #801
37 lines
944 B
JSON
37 lines
944 B
JSON
{
|
|
"$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'"
|
|
},
|
|
"arr" : {
|
|
"kind" : "json"
|
|
},
|
|
"obj" : {
|
|
"kind" : "json"
|
|
},
|
|
"user" : {
|
|
"kind" : "string",
|
|
"identifier" : true,
|
|
"rewriter" : "|rewrite-user"
|
|
}
|
|
}
|
|
}
|
|
}
|