Skip to content

Commit

Permalink
zmlogger: 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 9a9fbd8 commit 5ae6387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexec/zmlogger
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ sub killserver() {
sub run() {
my $dbh = init();
my $opened;
my $logregex = qr/(^.{15}) ((\d+\.\d+\.\d+\.\d+)|(\S+)) ([^[]+)(\[(\d+)\])?: (.*)$/o;
my $logregex = qr/^(.{15}|\S+) ((\d+\.\d+\.\d+\.\d+)|(\S+)) ([^[]+)(\[(\d+)\])?: (.*)$/o;

my $fragre = qr/:::(\w{8}-\w{4}-\w{4}-\w{4}-\w{12}):::$/o;
my $fragnextre = qr/.*:::(\w{8}-\w{4}-\w{4}-\w{4}-\w{12}):::(?!$)/o;
Expand Down

0 comments on commit 5ae6387

Please sign in to comment.