By rgraves on
I have my access logs settings to delete after 3 days, but when I look in the logs, I only see entries from today and yesterday. I'm running Drupal 6.16.
I have my access logs settings to delete after 3 days, but when I look in the logs, I only see entries from today and yesterday. I'm running Drupal 6.16.
Comments
Our central IT department has
Our central IT department has a piece of scanning software that goes through and scans servers for vulnerabilities. I noticed it was hitting our web server last night. When it hits our server, it basically results in the access log filling up with hundreds (or thousands) of 404 errors since it's looking for specific files that could be hackable.
I noticed the last entry in our Drupal logs occurred when that software was scanning our site. Is there anyway the two are connected?
Logs Still Being Purged
Just checked again this morning and our last log entry is from 8:30 yesterday morning. So again it's keeping about 24 hours worth of logs.
Problem Solved
I went to the settings page where it says how long to keep access log entries for. It said 3 days, but I decided to hit save and see if that resolves it as I've noticed that happen before for other modules.
I waited the weekend and went in this morning and that seems to have worked.
Database Logging Settings
One other small change I made in case anyone else notices this problem:
After I resaved the access log settings, it still was only keeping entries for a little under 3 days. There is also a setting under Site Configuration -> Logging and Alerts -> Database Logging (/admin/settings/logging/dblog) where you can set Drupal to only keep X number of log entries. It was set to 1,000 so I changed it to 10,000. It is now keeping log entries for 3 days as I originally intended.