- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Regardnig log rotation period of /var/log/sa folde...
Operating System - Linux
1823060
Members
3170
Online
109645
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
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
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
тАО07-04-2007 09:14 PM
тАО07-04-2007 09:14 PM
Regardnig log rotation period of /var/log/sa folder.
Hello,
I would like to know how to change log rotation period of /var/log/sa log.
[ENVIRONMENT]
RHEL 3 ES up6
[SITUATION]
At /var/log/sa directory, some file remain for 7 days.
[QUESTION]
- How can I change the log rotation at /var/log/sa directory ?
What shall I do to change the period of log retention in it ?
I could not find any setting at /etc/crontab, etc.
Thank you for advice.
Best Regards.
/Minoru
I would like to know how to change log rotation period of /var/log/sa log.
[ENVIRONMENT]
RHEL 3 ES up6
[SITUATION]
At /var/log/sa directory, some file remain for 7 days.
[QUESTION]
- How can I change the log rotation at /var/log/sa directory ?
What shall I do to change the period of log retention in it ?
I could not find any setting at /etc/crontab, etc.
Thank you for advice.
Best Regards.
/Minoru
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2007 09:45 PM
тАО07-04-2007 09:45 PM
Re: Regardnig log rotation period of /var/log/sa folder.
I would not do this.
Normally there is one file for each day of the month.
The files are used to collect statistics of your server with the command sar.
So you can have statistics of the last month
Normally there is one file for each day of the month.
The files are used to collect statistics of your server with the command sar.
So you can have statistics of the last month
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2007 09:52 PM
тАО07-04-2007 09:52 PM
Re: Regardnig log rotation period of /var/log/sa folder.
I presume your sar tool installation came as part of the sysstat rpm.
You can simply query for the config files.
# rpm -qc sysstat
/etc/cron.d/sysstat
/etc/sysconfig/sysstat
The first most likely is a Vixie-type crontab
For instance on this Fedora box the sar is scheduled like this.
Simply change the time for the summary collecting.
# cat /etc/cron.d/sysstat
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib/sa/sa2 -A
How many generations you wish to keep
seems to be configured here on RH.
# cat /etc/sysconfig/sysstat
# How long to keep log files (days), maximum is a month
HISTORY=7
You can simply query for the config files.
# rpm -qc sysstat
/etc/cron.d/sysstat
/etc/sysconfig/sysstat
The first most likely is a Vixie-type crontab
For instance on this Fedora box the sar is scheduled like this.
Simply change the time for the summary collecting.
# cat /etc/cron.d/sysstat
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib/sa/sa2 -A
How many generations you wish to keep
seems to be configured here on RH.
# cat /etc/sysconfig/sysstat
# How long to keep log files (days), maximum is a month
HISTORY=7
Madness, thy name is system administration
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP