Skip to content

Commit bd8a9ce

Browse files
committed
[esx_syslog_log] capture more context stuff
1 parent be78a01 commit bd8a9ce

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

src/formats/esx_syslog_log.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Format specific to the ESXi syslog",
66
"regex": {
77
"std": {
8-
"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+)\\))(?:\\[\\+\\]|\\+)?(?:(?: (?<log_syslog_tag>(?<log_procname>(?:[^\\[:]+|[^:]+))(?:\\[(?<log_pid>\\d+)\\])?):\\s*(?:\\w+ \\[(?<logger>[^ ]+)(?: op[iI][dD]=(?<opid>[^ \\]]+))?\\]\\s*)?(?<body>.*))$|:?(?:(?: ---)? last message repeated \\d+ times?(?: ---)?))"
8+
"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+)\\))(?:\\[\\+\\]|\\+)?(?:(?: (?<log_syslog_tag>(?<log_procname>(?:[^\\[:]+|[^:]+))(?:\\[(?<log_pid>\\d+)\\])?):\\s*(?:(?:(?:debug|info|warning|error) )?\\[(?<logger>[^ ]+)(?: sub=(?<sub>[@\\.\\-\\w\\(\\)\\[\\]]+))?(?: op[iI][dD]=(?<opid>[^ \\]]+))?(?: update=(?<update_num>\\d+))?(?: sid=(?<sid>\\w+))?(?: user=(?<user>(?:[^\\]]|<[^>]+>)+))?(?: reason=(?<reason>[^\\]]+))?\\]\\s*)?(?<body>.*))$|:?(?:(?: ---)? last message repeated \\d+ times?(?: ---)?))"
99
},
1010
"host": {
1111
"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+)\\))(?:\\[\\+\\]|\\+)?(?:(?: (?<log_syslog_tag>(?:host-(?<log_pid>\\d+))?)\\s+(?<body>.*))$|:?(?:(?: ---)? last message repeated \\d+ times?(?: ---)?))"
@@ -54,15 +54,38 @@
5454
"log_syslog_tag": {
5555
"kind": "string"
5656
},
57+
"logger": {
58+
"kind": "string",
59+
"identifier": true
60+
},
5761
"opid": {
5862
"kind": "string",
5963
"identifier": true
6064
},
65+
"sub": {
66+
"kind": "string",
67+
"identifier": true
68+
},
69+
"sid": {
70+
"kind": "string",
71+
"identifier": true
72+
},
73+
"user": {
74+
"kind": "string",
75+
"identifier": true
76+
},
6177
"syslog_pri": {
6278
"kind": "string"
6379
},
6480
"timestamp": {
6581
"kind": "string"
82+
},
83+
"reason": {
84+
"kind": "string"
85+
},
86+
"update_num": {
87+
"kind": "integer",
88+
"foreign-key": true
6689
}
6790
},
6891
"sample": [
@@ -86,6 +109,9 @@
86109
},
87110
{
88111
"line": "2023-11-07T19:17:28.030Z In(14) settingsd[2099680]: [Ticket] Deleted ticket /var/run/vmware/tickets/vmtck-31182534-c078-88"
112+
},
113+
{
114+
"line": "2024-03-26T04:31:17.959Z In(166) Hostd[2098914]: [Originator@6876 sub=Libs opID=539bc6dd-c7-c39c sid=52370179 user=vpxuser:VSPHERE.LOCAL\\vpxd-extension-a86d81ba-5ea8-47e4-ae55-c91f3dc2ece9] notFound(403)"
89115
}
90116
]
91117
}

0 commit comments

Comments
 (0)