Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-18-2004, 01:53 PM   #1
Registered: Nov 2003
Distribution: Slackware
Posts: 63

Rep: Reputation: 15

My /var/log/syslog is huge (nearly 400 MB), is there some way to limit the size of this thing ? 400 MB for a stupid log file seems a little bit much. Or should I just delete it and recreate it every month or so to keep the size down ?
Old 03-18-2004, 02:10 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ummm ... for all I know slack defaults to
using logrotate, which should keep the
logs to a more weildy size ... and you can
then just remove older versions ...

Is logrotate installed on your box?
grep -l logrotate /var/log/packages/*


P.S.: For now it should be reasonably safe to
echo /dev/null > /var/log/syslog
(if you're sure there was no intrusion attempt :})

Last edited by Tinkster; 03-18-2004 at 02:11 PM.
Old 03-19-2004, 06:01 AM   #3
Registered: Nov 2003
Distribution: Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
logrotate is installed, I'll probably just have to setup a cron job.
Old 03-19-2004, 06:09 AM   #4
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Why not just remove the logs? there not needed they just old stuff that has been loged already so what good are they to you?
Old 03-19-2004, 07:34 AM   #5
Registered: Nov 2003
Distribution: Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Well all the config files where good, but crontab -l told me
that logrotate job gets done at 4:40 every day (it's in my /etc/cron.daily directory). I'm assuming this is in the middle of the night, seeing that my computer is turned off at that hour, it's no surprise my syslog managed to grow to 400 MB.


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
Normal /var/log/syslog?? jimdaworm Slackware 2 02-03-2005 09:32 PM
No output to /var/log/messages or ~syslog eelriver Slackware 5 07-18-2004 05:13 AM
HELP!!!! /var/log/messages & syslog 350MB and growing!! nemat0de Mandriva 1 05-29-2004 06:08 AM
re: where is /var/log/syslog ergo_sum Red Hat 10 11-04-2003 06:27 PM
/var/adm/messages & syslog Khalid Linux - General 0 11-08-2001 05:40 PM

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration