Merge pull request #209 from sureshsundriyal/wip

[regex] VMKernel logs have ALERT as well as WARNING.
pull/210/head
Tim Stack 9 years ago
commit 754d0aba05

@ -792,11 +792,12 @@
"url": "", "url": "",
"regex": { "regex": {
"std": { "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+)\\)((?<level>WARNING): )?(?<body>.*)" "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z) cpu(?<cpu>\\d+):(?<world_id>\\d+)\\)((?<level>WARNING|ALERT): )?(?<body>.*)"
} }
}, },
"level-field": "level", "level-field": "level",
"level": { "level": {
"error": "ALERT",
"warning": "WARNING" "warning": "WARNING"
}, },
"value": { "value": {
@ -812,6 +813,9 @@
"sample": [ "sample": [
{ {
"line": "2014-11-14T19:19:51.559Z cpu7:35233)VC: 2002: Device rescan time 704 msec (total number of devices 91)" "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."
} }
] ]
}, },

Loading…
Cancel
Save