Jump to content

[Solved] log full after every 3 weeks


Recommended Posts

Is there a maximum limit of the atop log size, so I could still use the atop package but resize my log parition accordingly?

 

EDIT: To answer my own question. No, it's impossible to know how much atop will log as it is fixed to a time frame:

When atop is installed, the script atop.daily is stored in the /etc/atop directory. This scripts takes care that atop is activated every day at midnight to write compressed binary data to the file /var/log/atop/atop_YYYYMMDD with an interval of 10 minutes.
Furthermore the script removes all raw files which are older than four weeks.
The script is activated via the cron daemon using the file /etc/cron.d/atop with the contents
0 0 * * * root /etc/atop/atop.daily

 

With this command the cron file is changed:

sed -i 's/+28/+7/' /etc/atop/atop.daily

 

  • Like 1
  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...