Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zmlogprocess: fix parsing of rsyslog precision timestamps
Browse files Browse the repository at this point in the history
jjakob committed Apr 7, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 1c1ee7a commit 61d95fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexec/zmlogprocess
Original file line number Diff line number Diff line change
@@ -224,7 +224,7 @@ sub run() {
my $state = updateState();
open(LOG, "<$log_file") || die $!;

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

0 comments on commit 61d95fb

Please sign in to comment.