- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: create new syslog.log
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
Forums
Discussions
Discussions
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
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
08-31-2005 09:40 PM
08-31-2005 09:40 PM
create new syslog.log
I have the syslog.log file, but I want to rotate the file. I want to create the OLDsyslog.... and the syslog.log new.
Some one know how to do it?
Thanks in advanced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 09:49 PM
08-31-2005 09:49 PM
Re: create new syslog.log
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 09:51 PM
08-31-2005 09:51 PM
Re: create new syslog.log
cp /var/adm/syslog/syslog.log /var/adm/syslog/OLDsyslog.log
> /var/adm/syslog/syslog.log
or restart syslogd in /sbin/init.d/
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 09:55 PM
08-31-2005 09:55 PM
Re: create new syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 10:02 PM
08-31-2005 10:02 PM
Re: create new syslog.log
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/logrotate-2.5/
or use some procedures that you can find in this links:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=57218
Consider also that this command
sbin/init.d/syslogd stop & /sbin/init.d/syslogd
will rotate the syslog.log file; for example you could use a cron job that every 10 mins checks the syslog file lenght and then rotates the log.
In attachment I put a script of the great Bill Hassel to manage log rotation ( thank you Bill for your teachments! )
Hope this helps,
Alex