Re: [rt-users] Help Regarding Rotating Log File RT.Log

2009-10-06 Thread lists
Use the standard log rotator
Sent via BlackBerry from T-Mobile

-Original Message-
From: Varun varun.v...@elitecore.com
Date: Tue, 6 Oct 2009 11:16:43 
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Help Regarding Rotating Log File RT.Log

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Help Regarding Rotating Log File RT.Log

2009-10-06 Thread Eynat Nir Mishor
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.

Eynat

-Original Message-
From: li...@up-south.com [mailto:li...@up-south.com] 
Sent: Tuesday, 06 October 2009 7:48 AM
To: Varun; rt-users-boun...@lists.bestpractical.com;
rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help Regarding Rotating Log File RT.Log

Use the standard log rotator
Sent via BlackBerry from T-Mobile

-Original Message-
From: Varun varun.v...@elitecore.com
Date: Tue, 6 Oct 2009 11:16:43 
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Help Regarding Rotating Log File RT.Log

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com



___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Help Regarding Rotating Log File RT.Log

2009-10-06 Thread Ruslan Zakirov
Varun and all,

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.v...@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.



 Thanks  Regards

 Varun Vyas

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: sa...@bestpractical.com


 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com




-- 
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Help Regarding Rotating Log File RT.Log

2009-10-05 Thread Varun
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.

 

Thanks  Regards

Varun Vyas 

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Help Regarding Rotating Log File RT.Log

2009-10-05 Thread Emmanuel Lacour
On Tue, Oct 06, 2009 at 11:16:43AM +0530, Varun 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?
 

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).

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com