UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: info@upwork.link

mod_security2: grep log in cmdline

without comments

List of examples:

for IP, method and URL

# tail -n 500  -F modsec_audit_XXX.log | egrep '(Engine-Mode|GET|POST|178\.94)'

For id of Rule:

# tail -n 500  -F modsec_audit_XXX.log | egrep '\[id "[0-9]*"\]'

Bots:

# tail -n 500  -F modsec_audit_XXX.log | egrep '(User-Agent|GET|POST|Engine-Mode)'

LP coloring 1:

tail -n 500 -F modsec_audit_XXX.log | egrep '(GET.*|POST.*|User.*|\[id "[0-9]+"|148.251)'

Written by spectre

December 4th, 2014 at 1:38 pm

Posted in Apache2

Leave a Reply

*