From 9f53d1d3d161ecf7bb2a7a16ac4134d14a029205 Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal Date: Wed, 8 Apr 2015 19:07:11 -0700 Subject: [PATCH] [regex] VMKernel logs have ALERT as well as WARNING. --- src/default-log-formats.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/default-log-formats.json b/src/default-log-formats.json index 92bea1fb..f193819a 100644 --- a/src/default-log-formats.json +++ b/src/default-log-formats.json @@ -792,11 +792,12 @@ "url": "", "regex": { "std": { - "pattern": "^(?\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z) cpu(?\\d+):(?\\d+)\\)((?WARNING): )?(?.*)" + "pattern": "^(?\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z) cpu(?\\d+):(?\\d+)\\)((?WARNING|ALERT): )?(?.*)" } }, "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." } ] },