LinuxQuestions.org
Help answer threads with 0 replies.
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 02-20-2015, 01:21 PM   #46
rstuff
Member
 
Registered: Jul 2011
Posts: 109

Original Poster
Rep: Reputation: Disabled

How can I manually rotate my logs. My /var/log file is taking up 15 Gb of my 20 Gb root file system. I have /home in a separate partition. I tried running logrotate from my /etc/cron.daily folder but my /var/log/syslog is still setting at 6 Gb. From looking at my logs it looks like logrotate has not run on syslog for 9 days. How can I tell why the syslog is not being rotated?
Thank you
 
Old 02-20-2015, 01:49 PM   #47
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
It's not really designed for manual running.
How many compressed logs to you keep?
 
Old 02-20-2015, 04:53 PM   #48
rstuff
Member
 
Registered: Jul 2011
Posts: 109

Original Poster
Rep: Reputation: Disabled
On syslog I have 7 compressed backups and 1 ncompressed backup. The first compressed backup was done 2/12/15 and and uncompressed backup was done 2/11/15. My syslog file has a new date/time stamp from about 10 minutes ago but is still showing 6 Gb and the records start at 2/11/15. I didn't do anything. Doesn't make sense to me. I did have the /var/log file open under computer at the time.
Thank you
 
Old 02-20-2015, 04:55 PM   #49
rstuff
Member
 
Registered: Jul 2011
Posts: 109

Original Poster
Rep: Reputation: Disabled
From looking at the backups it looks like the syslog was being rotated every day before the 12th.
Thank you
 
Old 02-20-2015, 05:05 PM   #50
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
Have you blacklisted the cause of those multitudinous errors?
Alternately, you could consider removing those error lines...
 
Old 02-20-2015, 07:22 PM   #51
rstuff
Member
 
Registered: Jul 2011
Posts: 109

Original Poster
Rep: Reputation: Disabled
I am not seeing repeated error messages now. I looked at the last 100 lines with the tail command and the records looked normal. After I looked at the syslog records I checked the syslog properties and bot the modified and accessed time had been updated. The accessed time seems to get modified every time I look at it which is probably normal. Still showing 6Gb. I have not blacklisted anything. If I delete syslog does the system rebuild it? I could probably copy it over to my home directory and delete it from my log file.
Thank you
 
  


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
No space left on Device Fra123X Linux From Scratch 8 09-30-2013 05:36 AM
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 03:50 PM
[SOLVED] No space left on device TheIndependentAquarius Linux - Newbie 32 01-10-2011 12:14 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM
No space left on device clintdavis Linux - Software 2 05-04-2006 11:38 PM


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