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/src/formats/redis_log.json

60 lines
1.9 KiB
JSON

{
"$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"
}
]
}
}