Discussion Locked

How to stop system logging!!!

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a linux box that does ip translations and the hard drive fills up with dhcpd.leases.xxxxx files ubtil the box shuts down.How can I turn off the logging of the ip leases. Can you give my steps on how to do it. If I delete the dhcpd.leases.xxxxx files the box will run for a few days and then the hard drive fills back up. I don't need any type of logging on this box. I think the logging file is syslogd and klogd but I am not sure as to what to do to these files. Please help!!!! Thanks Gary!!!!

7 replies

by sanjay gowda

Stop the syslogd daemon.
use ntsysv command
scroll down till you see syslogd
uncheck that
select okay
now run
/etc/rc.d/init.d/syslogd stop
that should do

by exter

Edit /etc/syslog.conf, search for the line
containing dhcp logging and add /dev/null as
target for the logs. You can also pipe some
other logs to /dev/tty8 (or the one you like)
in order to display them there, avaoiding if
you want, having the logs stored on disk.

You can also dissable *all* logging simply
removing the link in your custom runlevel
(/etc/rcN.d or the like), which is an entry
wich looks something like @10syslogd, then
*all* logging will be disabled, and you won't
be able to follow other things which could
happen (security issues, harware problems,
etc), so I point you at the first solution.

by eugen prokopiev

Sorry for my ugly english...

I think that stopping ALL system logging by using "syslogd stop" is a bad idea. Some system programs will not function properly or not work at all! Even the login procedure looks strange without syslogd. So I recommend you to turn off only DHCPd logs.

First, try to look through /etc/syslog.conf file and find an entry for dhcpd. If you'll found, change output file to /dev/null or some device you like (for example, unassigned to gettys tty device or serial line).
If there is no entry for dhcpd in syslog.conf, try to read manuals for DHCP server and find information about configuration files for it. Find option(s) controlling paths to log liles and change it to /dev/null (or tty).

This discussion is closed to new replies.