diff options
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/rspamd_stats.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl index 1f075b9bb..8f2cc60e8 100755 --- a/utils/rspamd_stats.pl +++ b/utils/rspamd_stats.pl @@ -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$/ ) { |