Skip to content

Commit e40473d

Browse files
authored
Add files via upload
2.9.1 compatibility hacks.
1 parent 65f7883 commit e40473d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

2081_filter_section_h_convert_to_key-value.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ filter {
1010
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1111

1212
if [rawSectionH] =~ /.+/ {
13+
# For 2.9.1+ compatibility
14+
mutate {
15+
# This works for most things, but if the error has things like REQUEST_HEADERS:Referer in it, it can be problematic.
16+
# gsub => [ "rawSectionH", 'ModSecurity:', 'ModSecurity' ]
17+
# Alternately, just drop "Apache-Error:" from rawSectionH.
18+
gsub => [ "rawSectionH", '^Apache-Error:.*', '' ]
19+
}
1320
kv {
1421
source => "rawSectionH"
1522
field_split => "\n"

0 commit comments

Comments
 (0)