Merge pull request #209 from sureshsundriyal/wip

[regex] VMKernel logs have ALERT as well as WARNING.
This commit is contained in:
Tim Stack 2015-04-08 19:55:57 -07:00
commit 754d0aba05
1 changed files with 5 additions and 1 deletions

View File

@ -792,11 +792,12 @@
"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+)\\)((?<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": {
"error": "ALERT",
"warning": "WARNING"
},
"value": {
@ -812,6 +813,9 @@
"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."
}
]
},