Skip to main content
Participant
April 22, 2014
Question

Apache log rotation

  • April 22, 2014
  • 2 replies
  • 721 views

From the documentation here: http://help.adobe.com/en_US/adobemediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f29260bd-7ffa.2.3.html 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

    This topic has been closed for replies.

    2 replies

    Participant
    May 19, 2014

    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.

    April 25, 2014

    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.