1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
"$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"
}
}
}
}
|