LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-29-2012, 11:11 PM   #1
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Rep: Reputation: 0
Want to eliminate log files on my Debian Sequeeze


Recently, I installed Debian Squeeze on my Pogoplug Pro and plan to use it mainly as a torrent box. So far so good except I notice large number of log files are created. Since I am running Debian off a USB flash drive, I want to minimize the number of writes to the drive. What is the program to eliminate daemon.log, auth.log, log files for apache2 and samba.
Thanks.

Last edited by toolbox1234; 02-02-2012 at 01:03 PM.
 
Old 01-29-2012, 11:53 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
http://www.linuxquestions.org/questi...debian-404616/

May help you out.

If not I suggest you run a forum search using "remove log files". I did not do that I just used "log files".

This is why you need to mark solved threads solved. Makes forum searches work better.
 
Old 01-30-2012, 12:05 AM   #3
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
Thank you but that is not what I want. I don't want log fles to be created at the first place.
 
Old 01-30-2012, 01:56 AM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Why on earth not?

I do not believe that there is an operating system in existence that does not create log files. I most fervently hope not anyway.

No matter how stable a system is there will be problems of one kind or another. Without log files you have no way to diagnose the problem.

Clearing them occasionally is one thing. Not having them is just a wreck.
 
Old 01-30-2012, 10:57 AM   #5
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
This is a headless very limited purpose machine. If I accepted the consequences of no log files, is there a way to stop them from being created?
Thanks.
 
Old 01-30-2012, 12:46 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Probably. Have no idea what it would be.

I think you would have to compile your own kernel.

You would probably be better off to create a script to empty them and make it a cron job.
 
Old 01-30-2012, 01:05 PM   #7
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
using a script will not minimize number of writes to the USB flash drive. I was thinking about putting the log files on the hard drive. The draw back of that is the hard drive will never spin down even when I have nothing to upload/download. If I can't stop them from being created, I may have to route them to RAM and empty them often.
 
Old 02-02-2012, 01:03 PM   #8
toolbox1234
Member
 
Registered: Jan 2009
Posts: 32

Original Poster
Rep: Reputation: 0
By deleting /etc/rsyslog.conf, most of the files are gone. Apache2 still needs its log file but I can manage it with its conf file.
 
  


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
convert screen.log and putty.log files into linux readable files aksharb Linux - Software 1 03-20-2011 07:16 AM
Application to eliminate doubles in files and rename changed files with date? S. Chapelin Linux - Software 6 01-16-2011 02:02 AM
LXer: Monitoring Multiple Log Files At A Time With MultiTail On Debian Lenny LXer Syndicated Linux News 0 08-17-2009 12:10 PM
After Ubuntu updated to 8.04 box with Null OK after log in, how to eliminate? riebesell Linux - Software 2 03-26-2009 04:08 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM

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

All times are GMT -5. The time now is 02:22 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