File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -45,25 +45,22 @@ input {
45
45
charset => "US-ASCII"
46
46
path => "/path/to/your/modsec/audit/logs/*.log"
47
47
type => "mod_security"
48
+
49
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50
+ # merge all modsec events for a given entity into the same event.
51
+ # so essentially the modsec -Z marker is used as the splitter
52
+ # which is the end of each modsec logical event in the logfile
53
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54
+ codec => multiline {
55
+ pattern => "^--[a-fA-F0-9]{8}-Z--$"
56
+ negate => true
57
+ what => previous
58
+ }
48
59
}
49
60
}
50
61
51
62
filter {
52
63
53
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54
- # merge all modsec events for a given entity into the same event.
55
- # so essentially the modsec -A marker is used as the splitter
56
- # which is the start of each modsec logical event in the logfile
57
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58
-
59
- multiline {
60
- pattern => "^--[a-fA-F0-9]{8}-Z--$"
61
- negate => true
62
- what => previous
63
- type => "mod_security"
64
- }
65
-
66
-
67
64
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68
65
# Due to the complexity of the collapsed single string
69
66
# we get from multiline and the variance of exactly
You can’t perform that action at this time.
0 commit comments