]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow an alternative syslog format
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Mar 2018 12:56:05 +0000 (12:56 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Mar 2018 12:58:41 +0000 (12:58 +0000)
utils/rspamd_stats.pl

index 1f075b9bb4f7a1078282b22bdcfb0ce3dfd40bdb..8f2cc60e889de6c57599140125f655eab68250f4 100755 (executable)
@@ -564,6 +564,12 @@ sub log_time_format {
       last;
     }
 
+    # Aug  8 00:02:50 hostname rspamd[66986]
+    elsif (/^\w{3} (?:\s?\d|\d\d) \d\d:\d\d:\d\d \S+ rspamd\[\d+\]/) {
+      $format = 'syslog';
+      last;
+    }
+
     # Skip newsyslog messages
     # Aug  8 00:00:00 hostname newsyslog[63284]: logfile turned over
     elsif ( /^\w{3} (?:\s?\d|\d\d) \d\d:\d\d:\d\d\ \S+ newsyslog\[\d+\]: logfile turned over$/ ) {