Log Rotation question

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

anthony.hardy
Posts: 59
Joined: Wed Jul 27, 2005 9:49 am
Contact:

Log Rotation question

Postby anthony.hardy » Thu Aug 28, 2008 5:10 pm

Should we be adding scalix-caa.log, scalix-res.log and scalix-sis-indexer.log to our own log rotation routines? I have info in those logs from March of 2007 and the indexer log is nearly 1G.

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Thu Aug 28, 2008 6:29 pm

Sure - there are a bunch of files in there that get rotated, but you need to delete the old files from time to time.

anthony.hardy
Posts: 59
Joined: Wed Jul 27, 2005 9:49 am
Contact:

Postby anthony.hardy » Fri Aug 29, 2008 8:48 am

So I should be ok to delete scalix-caa.log, scalix-res.log and scalix-sis-indexer.log (or rename them and move them off to archival disk) without restarting scalix? or will this require a shutdown of scalix, recreate of the files, then start?

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Sun Aug 31, 2008 9:15 am

Those files are accessed by tomcat, so you should leave them be unless you're restarting that service, too. It's the *<date>* files I'd be dealing with.

mrezzonico
Posts: 133
Joined: Thu Aug 16, 2007 8:20 am

Re: Log Rotation question

Postby mrezzonico » Wed Oct 12, 2011 9:09 am

I have the same problem with scalix-sis-indexer.log
This file is not "log rotated" and now is 6GB.
What is the correct procedure to remove this file ?

Can I start the following command to delete this file ?
cat /dev/null > scalix-sis-indexer.log

Thanks Miche

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Re: Log Rotation question

Postby ls-al » Wed Oct 12, 2011 1:06 pm

All webapps have a corresponding log4j.properties file. Beside "nulling" the log as mentioned it might be a good idea to prevent the files from growing to the described size.
Theres no documentation provided by Scalix for the log4j settings because its taken from http://logging.apache.org/log4j/.

SIS log config is in /var/opt/scalix/??/sis/log4j.properties

If you change

Code: Select all

log4j.logger.indexer=INFO, indexfile

to

Code: Select all

log4j.logger.indexer=INFO, indexrfile


and

Code: Select all

log4j.appender.indexrfile.MaxFileSize=100KB

to

Code: Select all

log4j.appender.indexrfile.MaxFileSize=100MB


you will get up to 2 indexer logs with a max of 100MB

[EDIT: typo fixed]
Last edited by ls-al on Thu Oct 13, 2011 2:58 am, edited 1 time in total.

mrezzonico
Posts: 133
Joined: Thu Aug 16, 2007 8:20 am

Re: Log Rotation question

Postby mrezzonico » Thu Oct 13, 2011 2:53 am

Thanks for the help !

Miche


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 13 guests

cron