Skip to content

Commit d63155c

Browse files
committed
Added further notes for Centos/Fedora/Redhat Systems
1 parent 07b1890 commit d63155c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,23 @@ This config file for whatever reason will not run if you try to add the "-- web"
2929

3030
Also recommend you start logstash like "java -jar logstash-x.x.x-flatjar.jar agent -v -f /yourConf.conf" The "-v" will give verbose output and help you debug issues. Also DON'T run in "-v" mode in a prod environment as you will end up outputting a ton of data to your console and/or logstash stdout capture file. (if you have one)
3131

32+
Further note for Centos/Red Hat/Fedora Systems
33+
----------------------------------------------
3234

35+
If logstash has been installed from the logstash repository (http://www.logstash.net/docs/1.4.2/repositories), follow these steps:
36+
37+
1. Set the path in logstash-modsecurity.conf to path => "/var/log/httpd/modsec_audit.log"
38+
2. Copy logstash-modsecurity.conf to /etc/logstash/conf.d
39+
3. Copy logstash_modsecurity_patterns to /opt/logstash/patterns/
40+
4. Give read access to the logstash user on /var/log/httpd/modsec_audit.log
41+
42+
setfacl -m u:logstash:r /var/log/httpd/modsec_audit.log
43+
44+
5. Restart the logstash agent
45+
46+
systemctl restart logstash
47+
48+
6. Confirm mod_security messages are logged to standard output
49+
50+
tail -f /var/log/logstash/logstash.stdout
3351

0 commit comments

Comments
 (0)