SF.net SVN: logwatch:[324] trunk/scripts/shared/removeheaders

[email protected] Sat, 20 Feb 2016 20:57:10 +0000
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 324
          http://sourceforge.net/p/logwatch/code/324
Author:   stefjakobs
Date:     2016-02-20 20:57:10 +0000 (Sat, 20 Feb 2016)
Log Message:
-----------
Bug: #51: Solaris message id. strings are not removed by removeheaders

Modified Paths:
--------------
    trunk/scripts/shared/removeheaders

Modified: trunk/scripts/shared/removeheaders
===================================================================
--- trunk/scripts/shared/removeheaders	2016-02-20 00:06:14 UTC (rev 323)
+++ trunk/scripts/shared/removeheaders	2016-02-20 20:57:10 UTC (rev 324)
@@ -23,7 +23,7 @@
     # remove standard syslog-style header or configurable pattern
     $ThisLine =~ s/$RemovePattern//;
     #First line is Solaris ID tag style -mgt
-    $ThisLine =~ s/^... .. ..:..:.. [^ ]* [^\[:]*(\[\d*\])?: \[ID \d+( \w+\.\w+)?] //;
+    $ThisLine =~ s/^\[ID \d+( \w+\.\w+)?] //;
     # the following is for those logs that use the service name, but do not
     # append the ':' right after (for example, syslogd restart).  Presumably
     # OnlyService is called before RemoveHeaders, so this should only be done

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140