HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- script for rotating the log files.
Operating System - Linux
1827283
Members
3326
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-31-2007 12:29 AM
05-31-2007 12:29 AM
script for rotating the log files.
Hi Friends,
I am going to change the Debug level of my server (Redhat AS 4.0 Up 5) to vxconfigd, I am expecting the size of the log files will be huge.
The size in the disk is not good enough.
My plan is to keep the logs for 4 days and zip it and move it to alternate location.
Could any one help me to get a script for this? So that, I can put it in the crontab.
Thanks.
Adithyan
I am going to change the Debug level of my server (Redhat AS 4.0 Up 5) to vxconfigd, I am expecting the size of the log files will be huge.
The size in the disk is not good enough.
My plan is to keep the logs for 4 days and zip it and move it to alternate location.
Could any one help me to get a script for this? So that, I can put it in the crontab.
Thanks.
Adithyan
Keen to learn HP UX
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 12:34 AM
05-31-2007 12:34 AM
Re: script for rotating the log files.
I don't think you need a custom script for that.
see /etc/logrotate.conf
and also read `man logrotate`.
see /etc/logrotate.conf
and also read `man logrotate`.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 12:41 AM
05-31-2007 12:41 AM
Re: script for rotating the log files.
As noted use logrotate. Don't reinvent the wheel.
http://www.linux.com/article.pl?sid=05/09/23/1447200
http://www.linux.com/article.pl?sid=05/09/23/1447200
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2007 01:13 AM
05-31-2007 01:13 AM
Re: script for rotating the log files.
You friends are the keywrods 'daily' and 'compress'.
You may also want to 'postrotate' something to move log files to another location.
You may also want to 'postrotate' something to move log files to another location.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP