Skip to content

Commit

Permalink
zmlogprocess: fix parsing of rsyslog precision timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
jjakob committed Apr 7, 2021
1 parent 5ae6387 commit a9c9233
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
Expand Up @@ -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);
Expand Down

0 comments on commit a9c9233

Please sign in to comment.