Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2006, 05:29 PM   #1
LQ Newbie
Registered: May 2006
Distribution: CentOS
Posts: 1

Rep: Reputation: 0
How to get logrotate to only rotate files 2 days old.

I have a process that will can run at variable times and it generates log files. I would like to use logrotate to archive off old log files, but since the process runs at variable times I do not want logrotate to pull its log file from it. Is it possible for logrotate to only archive off files that are already 2 days old?
Old 05-18-2006, 08:55 PM   #2
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
you can accomplish all kinds of great stuff, including unique configs for specific files in /etc/logrotate.conf

I suggest you search for more info on this file.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to logrotate auth.log files? clintcan Linux - Security 1 12-10-2005 04:55 PM
rsync files accessed under 30 days 0ddba11 Linux - General 3 11-03-2005 06:59 AM
logrotate mishandles files with YYYY-MM-DD extension dthacker Linux - General 0 08-20-2004 09:53 AM
help with a script that deletes files more than X days old BrianK Linux - General 5 06-14-2004 09:05 PM
How to add my log files in logrotate Groucho Slackware 2 10-03-2003 08:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 PM.

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