LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2020, 12:54 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
atop log files


Hi all,

I have installed atop monitoring tool on debian 8. Somehow the logs are not getting deleted though I have changed the logrotate on atop.daily file. Do you have any idea ?

( (sleep 3; find $LOGPATH -name 'atop_*' -mtime +7 -exec rm {} \& )
 
Old 10-08-2020, 01:09 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
[obviously] insufficient info. But first please use code tags to post code, because it is now more or less unreadable.

Dropping in a line of code without knowing anything about its environment, context is just meaningless.
If I remember well logrotate itself can remove old logs, do not need to do it like that.
 
Old 10-08-2020, 02:06 AM   #3
lvm_
Member
 
Registered: Jul 2020
Posts: 983

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Code:
       rotate count
              Log  files are rotated count times before being removed or mailed to the address specified in a mail directive. If
              count is 0, old versions are removed rather than rotated. Default is 0.

Last edited by lvm_; 10-08-2020 at 02:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SchilliX 0.7.1 Released Atop The Final OpenSolaris Code LXer Syndicated Linux News 0 08-31-2010 07:21 PM
LXer: Jolicloud Innovates Atop Ubuntu Netbook Remix LXer Syndicated Linux News 0 09-09-2009 09:10 AM
LXer: OpenCL Support Atop Gallium3D Is Here, Sort Of LXer Syndicated Linux News 0 08-31-2009 06:50 AM
LXer: Monitor Linux System Load and Processes With atop LXer Syndicated Linux News 0 07-23-2009 05:10 PM
atop - what is a busy disk bagpussnz Linux - General 1 07-16-2009 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration