You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lnav/test/formats/jsontest/format.json

61 lines
1.5 KiB
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",
"auto-width": true
},
{
"field": "logger",
"prefix": " <",
"suffix": ">",
"min-width": 20,
"max-width": 20,
"overflow": "abbrev",
"default-value": ""
},
" ",
{
"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"
},
"logger": {
"kind": "string",
"identifier": true
},
"lvl": {
"kind": "string",
"hidden": true
},
"user": {
"kind": "string",
"identifier": true,
"rewriter": "|rewrite-user"
}
}
}
}