Rotate Iplanet Logs
Tags:
To force daily rotation of Iplanet (Sun One Web Server) logs, add the following line to magnus.conf:
Init fn=flex-rotate-init rotate-start=0000 rotate-interval=1440
where the rotate-interval is in minutes, 1440 being 24 hours.
Restart Iplanet. "access" and "errors" logs will be rotated every 24 hours and named as such:
-rw-r--r-- 1 iplanet iplanet 143 Apr 23 00:00 access -rw-r--r-- 1 iplanet iplanet 143 Apr 21 21:35 access.200704220000 -rw-r--r-- 1 iplanet iplanet 143 Apr 22 00:00 access.200704230000 -rw-r--r-- 1 iplanet iplanet 0 Apr 23 00:00 errors -rw-r--r-- 1 iplanet iplanet 637 Apr 21 21:37 errors.200704220000 -rw-r--r-- 1 iplanet iplanet 0 Apr 22 00:00 errors.200704230000
Thanks to Mike Jordan for the info.
»
- Add new comment
- 1714 reads
