mirror of
https://github.com/tstack/lnav
synced 2024-11-05 21:21:19 +00:00
ffd9d88add
Fixes #661
36 lines
910 B
JSON
36 lines
910 B
JSON
{
|
|
"json_log2" : {
|
|
"title" : "Test JSON Log with integer levels",
|
|
"json" : true,
|
|
"file-pattern" : "logfile_json2\\.json",
|
|
"description" : "Test config",
|
|
"line-format" : [
|
|
{ "field" : "ts" },
|
|
" ",
|
|
{ "field" : "ts", "timestamp-format" : "abc %S def" },
|
|
" ",
|
|
{ "field" : "lvl", "min-width": 5 },
|
|
" ",
|
|
{ "field" : "cl", "max-width": 5},
|
|
" ",
|
|
{ "field" : "msg" }
|
|
],
|
|
"level-field" : "lvl",
|
|
"level" : {
|
|
"info" : 0,
|
|
"error" : 10
|
|
},
|
|
"timestamp-field": "ts",
|
|
"body-field" : "msg",
|
|
"value" : {
|
|
"user" : {
|
|
"kind" : "string",
|
|
"identifier" : true
|
|
},
|
|
"cl" : {
|
|
"kind" : "string"
|
|
}
|
|
}
|
|
}
|
|
}
|