Skip to content

Commit 03ec81d

Browse files
authored
Merge pull request #2749 from martinhsv/v2/master
mlogc log-line parsing fails due to enhanced timestamp
2 parents 784693b + f71498c commit 03ec81d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DD mmm YYYY - 2.9.x (to be released)
22
-------------------
33

4+
* mlogc log-line parsing fails due to enhanced timestamp
5+
[Issue #2682 - @bozhinov, @ABrauer-CPT, @martinhsv]
46
* Allow no-key, single-value JSON body
57
[Issue #2735 - @marcstern, @martinhsv]
68
* Set SecStatusEngine Off in modsecurity.conf-recommended

mlogc/mlogc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ do { \
9696
static const char logline_pattern[] =
9797
"^(\\S+)"
9898
"\\ (\\S+)\\ (\\S+)\\ (\\S+)"
99-
"\\ \\[([^:]+):(\\d+:\\d+:\\d+)\\ ([^\\]]+)\\]"
99+
"\\ \\[([^:]+):(\\d+:\\d+:\\d+(?:[.]\\d+)?)\\ ([^\\]]+)\\]"
100100
"\\ \"(.*)\""
101101
"\\ (\\d+)\\ (\\S+)"
102102
"\\ \"(.*)\"\\ \"(.*)\""

0 commit comments

Comments
 (0)