Operating System - HP-UX
1837896 Members
3373 Online
110122 Solutions
New Discussion

Re: System Log files on HP-UX 11i

 
Shivkumar
Super Advisor

System Log files on HP-UX 11i

Hey Guys,

Can anyone tell me on managing system log files on HP-UX 11i in an efficienct way ?

Thanks in advance.
Shiv
3 REPLIES 3
Rick Garland
Honored Contributor

Re: System Log files on HP-UX 11i

SAM can do truncating of log files.
Also the is logrotate, get from gatekeep.cs.utah.edu.

You can input a list of log files to keep track of and it will do so.

Kent Ostby
Honored Contributor

Re: System Log files on HP-UX 11i

Check out this previous thread as well:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=185250
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Steven E. Protter
Exalted Contributor

Re: System Log files on HP-UX 11i

For me, managing system log files means managing the space they take up.

I identify a list of big ones in a configuration file.

I use the name /var/log/list

Once a week a cron job runs that looks a bit like this:


while read -r filename
do
cp $filename /tmp
> $filename
done < /var/log/list

/var/log/list looks like this

/var/adm/syslog/syslog.log
/var/adm/syslog/mail.log

...

EOF

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com