View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: /var/log issues
PostPosted: Sun Apr 15, 2012 4:33 am 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
I noticed that we have moved to a new file format where some files are now in a date sub-dir.
But logrotate does not look in those directories so they will never be deleted (I think)

I altered /etc/rsyslog.conf to revert to the old and easy to understand method of having the files in the /var/log dir.
You can see the previous file location there but commented out.
Then just delete all your old dated dirs.

_________________
--
stinga

as of 17-May-2018
R8.2 - sort of working.
MB: gigabyte GA-P43-ES3G | RAM: 2GB
VGA: PNY Nvidia GT240 1GB
4 x Technisat skystar 2 dvb | 1 x TBS6981 dvb-s2
pata: 1x300Gb | sata: 2x1Tb 2x2Tb
Problems:
TBS6981 Does not work.


Top
 Profile  
 
 Post subject: Re: /var/log issues
PostPosted: Sun Apr 15, 2012 3:23 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
stinga wrote:
But logrotate does not look in those directories so they will never be deleted (I think)
/etc/cron.daily/log_care handles maintenance of the logs.


Top
 Profile  
 
 Post subject: Re: /var/log issues
PostPosted: Tue Apr 17, 2012 8:47 am 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
Thanks, I missed that one, not sure why I have more than a weeks worth though.

_________________
--
stinga

as of 17-May-2018
R8.2 - sort of working.
MB: gigabyte GA-P43-ES3G | RAM: 2GB
VGA: PNY Nvidia GT240 1GB
4 x Technisat skystar 2 dvb | 1 x TBS6981 dvb-s2
pata: 1x300Gb | sata: 2x1Tb 2x2Tb
Problems:
TBS6981 Does not work.


Top
 Profile  
 
 Post subject: Re: /var/log issues
PostPosted: Tue Apr 17, 2012 10:29 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
It looks like the $DATE directories have a different mtime and don't get removed with the files. The directories older than 7 days are empty here.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu