diff options
Diffstat (limited to 'src/formats/vmk_log.json')
-rw-r--r-- | src/formats/vmk_log.json | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/formats/vmk_log.json b/src/formats/vmk_log.json new file mode 100644 index 0000000..5d93def --- /dev/null +++ b/src/formats/vmk_log.json @@ -0,0 +1,51 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "vmk_log": { + "title": "VMKernel Logs", + "description": "The VMKernel's log format", + "url": "", + "regex": { + "std": { + "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z) cpu(?<cpu>\\d+):(?<world_id>\\d+)(?: opID=(?<opid>[^\\)]+))?\\)((?:(?<level>WARNING|ALERT)|(?<subsystem>[^:]+)): )?(?<body>.*)" + } + }, + "level-field": "level", + "level": { + "error": "ALERT", + "warning": "WARNING" + }, + "max-unrecognized-lines": 15000, + "opid-field": "opid", + "value": { + "cpu": { + "kind": "integer", + "identifier": true, + "foreign-key": true + }, + "world_id": { + "kind": "integer", + "identifier": true, + "foreign-key": true + }, + "subsystem": { + "kind": "string", + "identifier": true + }, + "opid": { + "kind": "string", + "identifier": true + } + }, + "sample": [ + { + "line": "2014-11-14T19:19:51.559Z cpu7:35233)VC: 2002: Device rescan time 704 msec (total number of devices 91)" + }, + { + "line": "2015-04-01T22:22:35.038Z cpu22:44012977)ALERT: This is what an alert looks like." + }, + { + "line": "2022-06-02T02:16:57.414Z cpu31:1001392590 opID=827cfaf)<unk>: UWVMKSyscall: ForkExec:2408: hostd-worker: Found params <group=hostd-tmp,mem=10>" + } + ] + } +}
\ No newline at end of file |