summaryrefslogtreecommitdiffstats
path: root/src/formats/vmk_log.json
blob: 962575e00e3882e94fb613d737a56ddb3d0d10b7 (plain)
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
61
62
63
64
65
66
{
    "$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>.*)"
            },
            "syslog": {
                "pattern": "^(?<timestamp>(?:\\S{3,8}\\s+\\d{1,2} \\d{2}:\\d{2}:\\d{2}|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z))\\s+(?<level>\\w+)\\((?<syslog_pri>\\d+)\\)(?:\\[\\+\\]|\\+)? (?:vmkernel|vmkwarning):\\s* (?:cpu(?<cpu>\\d+):(?<world_id>\\d+)(?: opID=(?<opid>[^\\)]+))?\\))?((?:(?:WARNING|ALERT)|(?<subsystem>[^:]+)): )?(?<body>.*)"
            }
        },
        "ordered-by-time": false,
        "level-field": "level",
        "level": {
            "debug": "^Db$",
            "info": "^In$",
            "notice": "^No$",
            "warning": "^(?:Wa|WARNING)$",
            "error": "^(?:Er|ALERT)$",
            "critical": "^Cr$",
            "fatal": "^(?:Al|Em)$"
        },
        "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>"
            },
            {
                "line": "2023-08-08T15:08:36.834Z Wa(180) vmkwarning: cpu0:263421 opID=a03fc439)WARNING: Sched: vm 265285: 6404: could not create container group, status: Admission check failed for memory resource"
            },
            {
                "line": "2023-08-08T14:13:55Z In(182) vmkernel: VMB: 65: Reserved 4 MPNs starting @ 0x4c1"
            }
        ]
    }
}