Operating System - HP-UX
1830899 Members
3196 Online
110017 Solutions
New Discussion

Re: log file rotation programs

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

log file rotation programs

Hi all,

although what I require is relatively simple to script I'd like to know if there are any programs / apps that I can use to rotate over 400 application log files.

Currently a single logfile exists for a single app therefor housekeeping is done manually by developers when necessary.

I am looking to keep one month of data in the logfile then create an archived logfile for the previous month.

is there a version of skulker than can do this?

Thanks

Chris
hello
4 REPLIES 4
Senthil Prabu.S_1
Trusted Contributor
Solution

Re: log file rotation programs

Hi,
Use logrotate tool for this purpose. You can download the depot @
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/

This is very simple, u can play with it easily

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Leonid Mishkind
Frequent Advisor

Re: log file rotation programs

There is an open source tool called CfEngine . I dont have a lot of experience with it , but I think it has a lot of options for remote file management.
http://www.cfengine.org/
Yogeeraj_1
Honored Contributor

Re: log file rotation programs

hi Chris,

logrotate is the tool of choice.

search this forum for this tool for more information on configuration, etc.


For something more specific to your preferences, you may have to write custom scripts..

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
lawrenzo_1
Super Advisor

Re: log file rotation programs

thanks guys
hello