summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-13 12:56:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-13 12:58:41 +0000
commit831a4536d09e693c92ef049d9811c539fc44569e (patch)
tree9fe817fd11eba8bbf1019b93e84666df0c14317c /utils
parentb7668ec7b3401bd921e643b4b43d261ae6d887e6 (diff)
downloadrspamd-831a4536d09e693c92ef049d9811c539fc44569e.tar.gz
rspamd-831a4536d09e693c92ef049d9811c539fc44569e.zip
[Minor] Allow an alternative syslog format
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rspamd_stats.pl6
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$/ ) {