Skip to content

Commit 61d95fb

Browse files
committed
zmlogprocess: fix parsing of rsyslog precision timestamps
1 parent 1c1ee7a commit 61d95fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libexec/zmlogprocess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ sub run() {
224224
my $state = updateState();
225225
open(LOG, "<$log_file") || die $!;
226226

227-
my $logregex = qr/(^.{15}) ((\d+\.\d+\.\d+\.\d+) \S+|(\S+)) ([^[]+)(\[(\d+)\])?: (.*)$/o;
227+
my $logregex = qr/^(.{15}|\S+) ((\d+\.\d+\.\d+\.\d+) \S+|(\S+)) ([^[]+)(\[(\d+)\])?: (.*)$/o;
228228
my %host_data;
229229
my %host_qid_data; # hostname -> { qid -> { first, last } }
230230
init_counters(\%host_data);

0 commit comments

Comments
 (0)