can I delete modsec_audit folder safely

Operating System & Version
Cloud linux 7.8
cPanel & WHM Version
88.10

mwabini

Member
Apr 27, 2019
6
1
3
Kenya
cPanel Access Level
Root Administrator
Hello

On our servers, there is a folder /var/log/apache2/modsec_audit that has some logfiles.

The folder contains cpanel user names folders which contain files with dates in the form of dates eg 20190328

Is it safe to delete this folder with rm -rf or will it cause any issues with running of apache or mod security?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
These are log files like any other log files, just for ModSecurity. I wouldn't suggest removing the most recent but you should be able to remove older logs without issue.
 
  • Like
Reactions: mwabini