From 5607b1b08e0174bbebad701a3d8269e37dd65282 Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Fri, 21 May 2021 16:03:40 -0700 Subject: [PATCH] [formats] handle some more vmw logs --- src/formats/block_log.json | 6 ++++++ src/formats/vmw_log.json | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/formats/block_log.json b/src/formats/block_log.json index 5d9c4637..4cfac313 100644 --- a/src/formats/block_log.json +++ b/src/formats/block_log.json @@ -6,11 +6,17 @@ "regex": { "std": { "pattern": "^(?\\S{3,8} \\w{3}\\s+\\d{1,2} \\d{2}:\\d{2}:\\d{2} \\w+ \\d{4})(?(?:.|\\n)*)$" + }, + "sq-brackets": { + "pattern": "^\\[(?\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3,6})?)Z?\\](?(?:.|\\n)*)$" } }, "sample": [ { "line": "Sat Apr 27 03:33:07 PDT 2013" + }, + { + "line": "[2021-05-21T21:58:57.022497Z]" } ] } diff --git a/src/formats/vmw_log.json b/src/formats/vmw_log.json index 243549c8..ad3ad47b 100644 --- a/src/formats/vmw_log.json +++ b/src/formats/vmw_log.json @@ -28,6 +28,12 @@ }, "vum-log4cpp": { "pattern": "^\\[(?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}:\\d{3}) '(?[^']*)' (?\\d+) (?[a-zA-Z]+)\\]\\s+(?>\\[(?\\S+), (?\\d+)\\])? (?.*$)" + }, + "pylog2": { + "pattern": "^(?[^:]+):(?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3})\\[(?\\w+)\\](?[^:]+):(?\\d+) \\[(?[a-zA-Z]+)\\]\\s+(?(?:.|\\n)*)$" + }, + "pylog3": { + "pattern": "^(?[^:]+): (?\\d+): (?\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}) (?[^:]+):(?\\d+) (?[a-zA-Z]+)\\s+(?(?:.|\\n)*)$" } }, "level-field": "level", @@ -111,6 +117,12 @@ }, { "line": "[2020-05-26 19:46:43:259 'ConfigurationMgr' 139700477753600 INFO] [configurationMgr, 155] Configuration manager created...vcidbInit" + }, + { + "line": "HsmService:2021-05-19 17:36:35,978[MainThread]hsmService:737 [INFO] HSM Service is initialized" + }, + { + "line": "ImageService: 139853338433792: 2021-05-19 17:36:35,675 imageService:769 INFO Image service is initialized" } ] }