2014-03-03 06:26:41 +00:00
|
|
|
{
|
2020-12-11 05:18:56 +00:00
|
|
|
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
|
2023-04-28 18:35:33 +00:00
|
|
|
"test_log": {
|
|
|
|
"title": "Test JSON Log",
|
|
|
|
"json": true,
|
|
|
|
"file-pattern": "logfile_json\\.json",
|
|
|
|
"description": "Test config",
|
|
|
|
"line-format": [
|
2019-05-13 17:35:54 +00:00
|
|
|
"\n[",
|
2023-04-28 18:35:33 +00:00
|
|
|
{
|
|
|
|
"field": "ts"
|
|
|
|
},
|
2019-05-13 17:35:54 +00:00
|
|
|
"] ",
|
2023-04-28 18:35:33 +00:00
|
|
|
{
|
2023-04-29 23:13:42 +00:00
|
|
|
"field": "lvl",
|
|
|
|
"auto-width": true
|
2023-04-28 18:35:33 +00:00
|
|
|
},
|
2014-03-03 06:26:41 +00:00
|
|
|
" ",
|
2023-04-28 18:35:33 +00:00
|
|
|
{
|
|
|
|
"field": "msg"
|
|
|
|
}
|
2014-03-03 06:26:41 +00:00
|
|
|
],
|
2023-04-28 18:35:33 +00:00
|
|
|
"level-field": "lvl",
|
2014-03-03 06:26:41 +00:00
|
|
|
"timestamp-field": "ts",
|
2023-04-28 18:35:33 +00:00
|
|
|
"body-field": "msg",
|
|
|
|
"value": {
|
|
|
|
"msg": {
|
|
|
|
"rewriter": ";SELECT :msg || 'bork bork bork'"
|
|
|
|
},
|
|
|
|
"arr": {
|
|
|
|
"kind": "json"
|
2016-12-06 00:34:30 +00:00
|
|
|
},
|
2023-04-28 18:35:33 +00:00
|
|
|
"obj": {
|
|
|
|
"kind": "json"
|
2018-11-15 05:46:49 +00:00
|
|
|
},
|
2023-04-28 18:35:33 +00:00
|
|
|
"lvl": {
|
|
|
|
"kind": "string",
|
|
|
|
"hidden": true
|
2020-04-23 13:42:48 +00:00
|
|
|
},
|
2023-04-28 18:35:33 +00:00
|
|
|
"user": {
|
|
|
|
"kind": "string",
|
|
|
|
"identifier": true,
|
|
|
|
"rewriter": "|rewrite-user"
|
2014-03-03 06:26:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|