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
|
{
"$schema": "https://lnav.org/schemas/format-v1.schema.json",
"redis_log": {
"title": "Redis",
"url": [
"https://redis.com",
"https://build47.com/redis-log-format-levels/"
],
"description": "The Redis database",
"regex": {
"v2.x": {
"pattern": "\\[(?<pid>\\d+)\\]\\s+(?<timestamp>\\d{1,2} [a-zA-Z]{3} \\d{2}:\\d{2}:\\d{2}\\.\\d{3})\\s+(?<level>[\\.\\-\\*\\#])\\s+(?<body>.*)"
},
"v3.x": {
"pattern": "(?<pid>\\d+):(?<role>[XCSM])\\s+(?<timestamp>\\d{1,2} [a-zA-Z]{3} \\d{4} \\d{2}:\\d{2}:\\d{2}\\.\\d{3})\\s+(?<level>[\\.\\*\\#\\-])\\s+(?<body>.*)"
},
"sig": {
"pattern": "(?<pid>\\d+):(?<role>signal-handler) \\((?<timestamp>\\d+)\\) (?<body>.*)"
}
},
"timestamp-format": [
"%s",
"%d %b %Y %H:%M:%S.%L",
"%d %b %H:%M:%S.%L"
],
"level": {
"debug": "^\\.$",
"trace": "^-$",
"notice": "^\\*$",
"warning": "^#$"
},
"value": {
"level": {
"kind": "string"
},
"pid": {
"kind": "string",
"identifier": true
},
"role": {
"kind": "string"
},
"timestamp": {
"kind": "string"
}
},
"sample": [
{
"line": "1:M 29 Aug 2023 13:47:38.984 * monotonic clock: POSIX clock_gettime"
},
{
"line": "1:signal-handler (1693279182) Received SIGTERM scheduling shutdown..."
},
{
"line": "[3574] 13 Apr 12:52:30.731 # Sentinel runid is 2e3b1eed9e95d760e1853e047a33bf4f8ac16c59"
}
]
}
}
|