ModSecurity is not logging to cPanel

peterw

Registered
Sep 28, 2013
1
0
1
cPanel Access Level
Root Administrator
I installed ModSecurity via EasyApache. ModSecurity is working properly and I can see attacks stopped via the modsec_audit.log file. In cPanel though when I click on ModSecurity I do not see any attacks in the front end GUI. How can I fix this so that attacks show up in the cPanel GUI as well?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

Check the following log file when accessing the Mod_Security interface in WHM to see if you notice any particular error output:

Code:
/usr/local/cpanel/logs/error_log
Thank you.
 

cPanelKevinS

Member
Staff member
Mar 7, 2013
8
0
1
An hourly cron job transfers the contents of the log file to the MySQL database; the database contents are then displayed in WHM. So it may take up to an hour for logged transactions to show up in WHM.

If it's been over an hour and you still see nothing, please open a ticket with support.