LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-21-2009, 06:04 AM   #1
rashmeepawar
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
Post logrotate log files


Hi,

I have written a script that runs every five minutes in cron schedular. The distro is fedora core 9. This script generates 2 log files, these log file size is going on increasing as some log data is being dumped into these 2 log files every five minutes. I need to logrotate these 2 files. Could someone help me with the steps to configure logrotate for the 2 files?

Thanks in advance.

Last edited by rashmeepawar; 10-21-2009 at 06:07 AM. Reason: did not provide OS
 
Old 10-21-2009, 06:14 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
You can add them in
/etc/logrotate.d/
 
  


Reply


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
eradicate squid log files using cron and logrotate cccc Debian 0 08-21-2007 08:25 AM
Log Rotation using Logrotate keysorsoze Linux - General 4 04-13-2007 03:51 PM
how to logrotate auth.log files? clintcan Linux - Security 1 12-10-2005 05:55 PM
logrotate log files - keeping in order when using grep or cat and bash dmellem Linux - Software 6 02-11-2005 02:05 PM
How to add my log files in logrotate Groucho Slackware 2 10-03-2003 09:16 AM


All times are GMT -5. The time now is 08:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration