LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   disable logging (https://www.linuxquestions.org/questions/linux-from-scratch-13/disable-logging-18141/)

rsbecker007 04-09-2002 09:08 PM

disable logging
 
I am using LFS-3.1, and although I had this same problem previously, I didn't think much about it until when I switched over to LFS. Basically I have given up on getting my ethernet cards (LNE100TX s) to work properly. Whenever I "ifconfig eth0 up" or "ifconfig eth1 up" they produce many many errors, but they operate just fine. As a short term solution to this I would like to disable logging either entirely, or if possible just for those errors, I tried not starting up the sysklogd script at startup, but the errors are still logged and printed to the console.

I would like to know how or if I can get it to either not log/display those errors in particular, or disable all logging.

P.S. when I brought up the eth0 without syslogd running something called keventd showed increased activity when the errors were being produced.

As usual ANY suggestion, solutions, comments or questions are welcomed.

lfslinux 04-09-2002 09:17 PM

Re: disable logging
 
Quote:

Originally posted by rsbecker007
I am using LFS-3.1, and although I had this same problem previously, I didn't think much about it until when I switched over to LFS. Basically I have given up on getting my ethernet cards (LNE100TX s) to work properly. Whenever I "ifconfig eth0 up" or "ifconfig eth1 up" they produce many many errors, but they operate just fine. As a short term solution to this I would like to disable logging either entirely, or if possible just for those errors, I tried not starting up the sysklogd script at startup, but the errors are still logged and printed to the console.

I would like to know how or if I can get it to either not log/display those errors in particular, or disable all logging.

P.S. when I brought up the eth0 without syslogd running something called keventd showed increased activity when the errors were being produced.

As usual ANY suggestion, solutions, comments or questions are welcomed.

Use the 'dmesg' program to set the level of kernel messages you want to receive on the console. By increasing the level, only that level or higher kind of messages will be printed. Experiment a bit which level will turn off the messages from your network card. It's probably level 3 or 4 that will do the trick.

rsbecker007 04-09-2002 09:58 PM

thanks!
 
That worked quite well. I used dmesg -n 3 to get it to stop, and with syslodgd disabled, my log files don't baloon with errors anymore. I will still try to get things straightened out correctly.

One thing I noticed though, was that dmesg shows that the errors are still being generated, and from according to top whenever I bring up the cards, % of memory used by system goes from 0.1% up to 11.8%, which I don't think should be happening, but that worries me much less than my / filling up. Thanks again, and as usual I am open to suggestions from anyone on getting it fixed the right way, but for now at least I am quite happy.


All times are GMT -5. The time now is 10:12 AM.