Hi, Appreciate some help here.. Error log isn't rotating logs with rotatelogs. Below I'm providing used ErrorLog directive, OS and Apache Versions. ErrorLog "|$/local/apache/2.4.56/bin/rotatelogs /local/apache/logs/test.com/error_logs.2.4.%Y.%m.%d 50M" When the size of Errorlog file reaches 50 MB, the Errorlog file is not rotated. Thanks in Advance.
It is likely %d doesn't change so the new and old log filename are the same. If you're not rotating based on time, overriding the filename format is hard to manage. If you want the data thrown away, you could use -T in this case. If you want it rotated, I would remove all of the format strings from the filename and use the default timestamp.