Skip to content

Commit 0b9a567

Browse files
committed
1. Added type => mod_security to input and filter sections as this was throwing away logs from existing inputs.\
2. Removed debug from stdout in output section as this is deprecated in logstash 1.4.2 \ 3. Removed embedded elasticsearch from output section as this seemed to conflict with existing output for redis.
1 parent d63155c commit 0b9a567

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

logstash-modsecurity.conf

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ input {
4444
# that your server writes these log files in
4545
charset => "US-ASCII"
4646
path => "/path/to/your/modsec/audit/logs/*.log"
47+
type => "mod_security"
4748
}
4849
}
4950

@@ -59,6 +60,7 @@ filter {
5960
pattern => "^--[a-fA-F0-9]{8}-A--$"
6061
negate => true
6162
what => previous
63+
type => "mod_security"
6264
}
6365

6466

@@ -431,14 +433,6 @@ output {
431433
# turn this off when ready to run in a
432434
# real prod environment and get rid of the
433435
# "-v" flag when starting logstash
434-
stdout {
435-
debug => true
436-
}
436+
stdout { }
437437

438-
# ideally you do NOT want to be running an
439-
# embedded elasticsearch in your logstash
440-
# process, you should be writing to a remote
441-
# elasticsearch instance (i.e. at least another
442-
# separate process from the logstash engine)
443-
elasticsearch { embedded => true }
444438
}

0 commit comments

Comments
 (0)