diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-07 04:48:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-07 04:48:35 +0000 |
commit | 207df6fc406e81bfeebdff7f404bd242ff3f099f (patch) | |
tree | a1a796b056909dd0a04ffec163db9363a8757808 /src/formats/redis_log.json | |
parent | Releasing progress-linux version 0.11.2-1~progress7.99u1. (diff) | |
download | lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.tar.xz lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.zip |
Merging upstream version 0.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/formats/redis_log.json')
-rw-r--r-- | src/formats/redis_log.json | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/formats/redis_log.json b/src/formats/redis_log.json new file mode 100644 index 0000000..faf9a5b --- /dev/null +++ b/src/formats/redis_log.json @@ -0,0 +1,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" + } + ] + } +} |