Hello. I hope everyone is safe and healthy and taking care of themselves and their loved ones.
In my /var/log/apache/error_log file as of today the beginning entry is May 18, 2021. When I search for information about trimming this file (if it's okay to do so) I see reports that there should be a Mod_Security Logs clickable link/icon in my Metrics folder of Cpanel, but none exists there.
Naturally I have access to WHM so maybe that's why it's not listed in Cpanel?
Nevertheless, what is the story with this humongous file? Can I trim it? Delete it?
Also, when using the following command to view what was triggering events:
I am seeing lots of errors as follows:
Thanks in advance.
Stay safe please.
In my /var/log/apache/error_log file as of today the beginning entry is May 18, 2021. When I search for information about trimming this file (if it's okay to do so) I see reports that there should be a Mod_Security Logs clickable link/icon in my Metrics folder of Cpanel, but none exists there.
Naturally I have access to WHM so maybe that's why it's not listed in Cpanel?
Nevertheless, what is the story with this humongous file? Can I trim it? Delete it?
Also, when using the following command to view what was triggering events:
Code:
grep ModSecurity /usr/local/apache/logs/error_log | sed -e 's#^.*\[id "\([0-9]*\).*hostname "\([a-z0-9\-\_\.]*\)"\].*uri "#\1 \2 #' | cut -d\" -f1 | sort -n | uniq -c
Code:
[Wed Sep 29 23:00:08.203229 2021] [:error] [pid 13071] [client xx.1xx.xxx.xx:38626] [client xx.xxx.xxx.xx] ModSecurity: collections_remove_stale: Failed to access DBM file
1 [Wed Sep 29 23:00:08.290565 2021] [:error] [pid 11899] [client xx.1xx.xxx.xx:38636] [client xx.xxx.xxxxx] ModSecurity: collection_store: Failed to access DBM file
Thanks in advance.
Stay safe please.
Last edited: