Apache log rotation
Copy link to clipboard
Copied
From the documentation here: http://help.adobe.com/en_US/adobemediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f29260bd-7ffa.2... is is stated that " Adobe Media Server handles log rotation for the Apache logs." However, it appears not to be the case.
My logs in /opt/adobe/ams/Apache/logs are not rotating.
Can you help with this? Does AMS handle this or will I need to manually logrotate?
Regards,
A

Copy link to clipboard
Copied
So this isn't working?:
1. "One option is to rotate log files, moving or deleting the oldest files."
I usually rename the old log files whenever/before the server needs to be restarted and that forces the server to generate new log files.
2. "Use the rotation element in the Logger.xml file to specify a rotation schedule for log files. Two types of rotation schedules can be established. The first option is to set a daily rotation at a certain time. For example, setting daily at 00:00 rotates files every 24 hours at midnight. Alternatively, set a rotation that occurs when the log exceeds a specified length. Name, maximum file size in kilobytes, and maximum number of log files to keep can also be customized using the
rotation element. For an example, see the Logger.xml file installed in the /conf directory."
Did you modify the Logger.xml file to change the log rotation time? Save a copy of the original file before you modify it.
3. You can also try to use a third party module (this might/might not work for you depending on your system specs): http://www.sitebuddy.com/mod_log_rotate
mod_log_rotate.so seems pretty simple to set-up and implement.
Copy link to clipboard
Copied
Logger.xml is logging AMS logs correctly. My original question was related to Apache logs in /opt/adobe/ams/Apache/logs. The documentation suggests AMS handles apache logs (" Adobe Media Server handles log rotation for the Apache logs.") however it appears not.
