- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending SYSLOG
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 10:12 AM
тАО12-12-2006 10:12 AM
I would like to have a 30 days retention of syslog in unix. Is there a way on how to do this?
Thanks
Solved! Go to Solution.
- Tags:
- syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 10:16 AM
тАО12-12-2006 10:16 AM
SolutionIf you only want to keep 30 days worth, you could stop and restart syslogd every month.
When syslogd starts (if you do it via '/sbin/init.d/syslogd start') it moves syslog.log to OLDsyslog.log. From there you could move OLDsyslog.log to syslog.log.NOV or whatever you desire.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 07:04 PM
тАО12-12-2006 07:04 PM
Re: Extending SYSLOG
for suggested solutions please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=177825
Either:
- create a script
- use logrotate:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/logrotate-2.5/
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions. Your profile shows only 2 out of 28 answers received points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2006 10:07 PM
тАО12-12-2006 10:07 PM
Re: Extending SYSLOG
case schemes it is not restarted syslog not sera extinguished. apos reboot it saved syslog old in the OLDsyslog archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2006 12:12 AM
тАО12-13-2006 12:12 AM
Re: Extending SYSLOG
Your best bet would be to write your own script which would be fairly simple or use Logrotate (which I have used in the past and quite liked).
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
S