Module: check_mk
Branch: master
Commit: 2d3b19d642167537440b700ecc8c07d31af40489
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2d3b19d6421675…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 3 17:26:23 2012 +0100
FIX: Allowing ":" in application field (e.g. needed for windows logfiles)
---
ChangeLog | 1 +
mkeventd/bin/mkeventd | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3e2b0cb..3f2d44b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -43,6 +43,7 @@
Event Console:
* FIX: fix exception in rules that use facility local7
* FIX: fix event icon in case of using TCP access to EC
+ * FIX: Allowing ":" in application field (e.g. needed for windows
logfiles)
* Replication slave can now copy rules from master into local configuration
via a new button in WATO.
* Speedup access to event history by earlier filtering and prefiltering with grep
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index 04e3209..b95dc49 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -1294,7 +1294,10 @@ class EventServer:
# Variant 1, 2
else:
- tag, message = rest.split(":", 1)
+ # Replaced ":" by ": " here to make tags with
":" possible. This
+ # is needed to process logs generated by windows agent logfiles
+ # like "c://test.log".
+ tag, message = rest.split(": ", 1)
event["text"] = message.strip()
if '[' in tag: