LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-18-2006, 06:29 PM   #1
yoda_mon
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, 09:55 PM   #2
nilleso
Member
 
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.
cheers
 
  


Reply

Tags
logrotate


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:18 PM.

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