LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2010, 10:52 AM   #16
alanoco79
LQ Newbie
 
Registered: Feb 2010
Posts: 21

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by kirukan View Post
To avoid this situation in future, better to ask your Administrator to add logrotate for these logs

Unfortunately, I AM the administrator!!
 
Old 04-23-2010, 10:55 AM   #17
alanoco79
LQ Newbie
 
Registered: Feb 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by catkin View Post
Will reply now we have some breathing space. Which logs? I didn't spot any big logs not being rotated.
I zapped all the messages.x and maillog.x files
 
Old 04-23-2010, 11:03 AM   #18
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,274

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by catkin View Post
Will reply now we have some breathing space. Which logs? I didn't spot any big logs not being rotated.
The logs are rotated in periodically but not compressed.

refer the following site for logrotation
http://www.cyberciti.biz/faq/how-do-i-rotate-log-files/

Please take some clear notes about these parameters
sample:-
PHP Code:
/var/log/httpd/*.log {
 weekly
 rotate 3
 compress
  missingok
  notifempty
  sharedscripts
  postrotate
      /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true    endscript


Last edited by kirukan; 04-23-2010 at 11:04 AM.
 
Old 04-26-2010, 05:23 AM   #19
alanoco79
LQ Newbie
 
Registered: Feb 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kirukan View Post
The logs are rotated in periodically but not compressed.

refer the following site for logrotation
http://www.cyberciti.biz/faq/how-do-i-rotate-log-files/

Please take some clear notes about these parameters
sample:-
PHP Code:
/var/log/httpd/*.log {
 weekly
 rotate 3
 compress
  missingok
  notifempty
  sharedscripts
  postrotate
      /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true    endscript

Thanks for that, I'll have a look and see if I can get my head around it, although I'm a bit nervous of making any changes to the server config: if it stops working again, I'm really up the creek!!
 
  


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
How to free up space on a Linux Red Hat Server running Kerio Mail Server ohioguy47 Linux - Newbie 6 08-04-2008 08:49 PM
Problem with free space on my server. banan Linux - General 2 03-31-2005 06:49 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM
Free server space juby General 5 05-08-2003 12:36 PM


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