LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

Rep: Reputation: 15
/var/log/syslog


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
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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?
Code:
grep -l logrotate /var/log/packages/*

Cheers,
Tink


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
George666
Member
 
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
ProtoformX
Member
 
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
George666
Member
 
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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