I have RT 3.6.3 installed with Apache 2.0 with fast cgi implemented. We do
have a good hard disk space on our server but it will eventually will be
eaten up by log files (i.e from apache and rt logs). So I want to know how I
can rotate my RT logs. Does RT provide any provision for rotating log files
after certain amount of file size is achieved?
Please if any one knows about it then please help me in achieving it.
I have RT 3.6.3 installed with Apache 2.0 with fast cgi implemented. We do
have a good hard disk space on our server but it will eventually will be
eaten up by log files (i.e from apache and rt logs). So I want to know how I
can rotate my RT logs. Does RT provide any provision for rotating log files
after certain amount of file size is achieved?
RT does not handle log rotation itself.
You should use some programs like “logrotate” to rotate those logs.
If you are using LogToFile in RT then you will have to restart apache at
each rotation so it opens a new file after rotation.
The imho is to use LogToSyslog so you can treat this log like other
syslog files, and rotate it without apache restart. Syslog can also give
you better performance (not very noticeable, but it’s faster than
logtofile if you configure syslog to be async for this log).
If you’re up-to modifying RT’s code, you can use Log::Dispatch::FileRotate
instead of Log::Dispatch::File in a new RT_Local.pm file that will override
InitLogging() function of RT.pm.
Log::Dispatch::FileRotate allows rotation by file size or date/time while
retaining a specified amount of previous files. Does not require restarting
Apache upon log rotation.
It’s not recommended to use LogToFile in production environment. Use
LogToScreen to log into Apache’s logs or LogToSyslog.On Tue, Oct 6, 2009 at 9:46 AM, Varun varun.vyas@elitecore.com wrote:
Hello All
I have RT 3.6.3 installed with Apache 2.0 with fast cgi implemented. We do
have a good hard disk space on our server but it will eventually will be
eaten up by log files (i.e from apache and rt logs). So I want to know how I
can rotate my RT logs. Does RT provide any provision for rotating log files
after certain amount of file size is achieved?
Please if any one knows about it then please help me in achieving it.