
Thanks for the info. Could be useful but I'll try to stay away from the
Event Log (explained why in another reply in this thread).
In case anyone anyone stumbles upon this thread in the future: I tested and
otrs.log can be rotated manually. OTRS doesn't hold a permanent lock and so
an external tool could try to rename it when a certain size is surpassed.
On Tue, Mar 26, 2013 at 3:28 PM, Gerald Young
Sys::Syslog is a core module of perl. Changing the method to Syslog $Self->{LogModule} = 'Kernel::System::Log::SysLog'; $Self->{'LogModule::SysLog::LogSock'} = 'eventlog'; Theoretically, you should be able to see if this works quite quickly.
On Tue, Mar 26, 2013 at 9:03 AM, Bogdan Iosif
wrote: I'm running on Windows so I can't use neither SysLog or logrotate (I think).
Do you know if OTRS holds a file lock on "otrs.log"?
Worst case I could write something that periodically checks this file's size and when a threshold is reached it just moves it to some storage / archive. I was hoping OTRS's code uses a logging framework - like log4* - that can be configured to handle all these log file management options but it looks like that's not the case.
On Tue, Mar 26, 2013 at 2:43 PM, Gerald Young
wrote: You don't have to use LogFile. You can use SysLog and handle that way, even sending to Windows Event Viewer. http://forums.otterhub.org/viewtopic.php?f=60&t=16826
Or just use logrotate.
On Tue, Mar 26, 2013 at 5:59 AM, Bogdan Iosif
wrote: Hi list,
I'm trying to keep the size of LogModule::LogFile in check in a better way than allowed by configuring LogModule::LogFile::Date, which gives me rollover to a new file every month.
A config that allows limiting the log file size (with overwrite when threshold is reached or rolling over to a new file) is what I'm looking for.
Does OTRS have something like that?
/bogdan
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs