Forum Discussion
rb1980_75708
Mar 14, 2008Nimbostratus
WA 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....
rb1980_75708
Mar 27, 2008Nimbostratus
This is what I ended up doing and is working as desired.
(Note: I opted for a daily rotation schedule. This unit is not in production yet. I may need to tune it down once it starts logging in a high traffic environment.)
1. Create a temp file /var/tmp/wa-logrotate.txt with following contents:
logrotate {
wa include "/var/log/wa/access/*.log {
compress
ifempty
rotate 4
daily
olddir /var/log/wa/access/archive
sharedscripts
postrotate
/bin/kill -HUP `/sbin/pidof -s pvac 2> /dev/null` 2> /dev/null || true
endscript
}
"
}
2. run: bpsh < /var/tmp/wa-logrotate.txt
3. run: bigpipe save all
4. test configuration by running: logrotate -d /etc/logrotate.d/wa
Note: I have not applied the above mentioned hot fixes yet, so i'm not sure how this will work once the box is updated (cross that bridge later). Until I do so, this is working fine.
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