LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12:21 PM   #46
rstuff
Member
 
Registered: Jul 2011
Posts: 151

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, 12:49 PM   #47
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

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

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, 03:55 PM   #49
rstuff
Member
 
Registered: Jul 2011
Posts: 151

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, 04:05 PM   #50
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

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

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



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
[SOLVED] No space left on device Aquarius_Girl Linux - Newbie 34 01-13-2018 04:18 PM
No space left on Device Fra123X Linux From Scratch 8 09-30-2013 04: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 02:50 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM
No space left on device clintdavis Linux - Software 2 05-04-2006 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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