Forum Discussion
rb1980_75708
Nimbostratus
Mar 14, 2008WA access logs
I am setting up a new deployment of some WA's and was surprised at the lack of any options to manage the access logs. In poking around, I see there's a cron that runs hourly to logrotate at 10MB size. My WA's will be in a pretty high-traffic environment and this seems too low.
I'd be curious to hear what others are doing to manage large amounts of access logs. I'm estimating my logs to be about 600-700MB/day per box.
- The_Bhattman
Nimbostratus
I am no stranger to your predicament. I have to manage 12gb of log files per day. What I do is at the end of the day I have the logs ftp'd to a log box with around 100gb of storage. A perl script processes the files and pulls out information that I need to have on a day to day basis, not simply to look at them be able to recall specific information I only need. The files are the zipped up and moved to another partision which they sit in near line storage for 1 month. There after it's backed up into tape. - rb1980_75708
Nimbostratus
CB, - The_Bhattman
Nimbostratus
Nope. I rotated based on the end of the day rather basing in file size. Even though I had local storage I didn't want to small files because it's too many files to search through. One giant file with perl script pretty much did the trick. - Out of curiosity are you referring to the HTTP Access logs or the system logs like the pvac.log?
- rb1980_75708
Nimbostratus
I am referring to the logs in: /var/log/wa/access/*.log - rb1980_75708
Nimbostratus
actually , i just noticed a discrepancy: - rb1980_75708
Nimbostratus
Turns out this is a known issue and fixed in hotfix 2: - rb1980_75708
Nimbostratus
This is what I ended up doing and is working as desired.logrotate {
- rb1980_75708
Nimbostratus
well, as I suspected: installing the hotfix collides with the previously mentioned change. You end up with duplicate definitions and an error:[root@webacc01:Active] tmp logrotate -d /etc/logrotate.d/wa reading config file /etc/logrotate.d/wa reading config info for /var/log/wa/access/*.log /var/log/wa/pvacLog_8081 reading config info for /var/log/wa/stats/*.log /var/log/wa/stats/system/*.log reading config info for /var/log/wa/stats/perfmonitor/*.log error: /etc/logrotate.d/wa:26 duplicate log entry for /var/log/wa/access/access_log_web_si_v127.log
- rb1980_75708
Nimbostratus
to back out the previous changes:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects