LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-25-2011, 06:55 AM   #1
shekhar_puttur
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
How to achieve syslog rotation in red hat linux?


Hi All,

I have configured /etc/syslog.conf for writing user level log messages, and it is working fine.


The line which i entered is:
user.* /home/shekhar/obj/myjob.log

But the log file keeps increasing. I would like to rotate the log file when it reaches 100Kb.

How do i do that in red hat linux ?

Looking forward for the kind response.

Thanks
 
Old 01-25-2011, 08:12 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
"man logrotate"

See /etc/logrotate.conf or /etc/logrotate.d/*
 
  


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
Linksys RV042 to Red Hat Syslog dos2linux Linux - Networking 2 07-27-2005 02:34 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:14 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