Why does "devd" service write so much in /var/log & how to prevent this

/etc/syslogd.conf is the controller.

Code:
# Uncomment this if you wish to see messages produced by devd
# !devd
# *.>=notice                    /var/log/devd.log
!*
 
devd may run logger(), depending on the contents of the devd.conf file.
In your case, probably a driver massively reports (or logs) stuff?

syslogd is for logging.

Doesn't the line 14 in the default etc/syslog.conf
Code:
!-devd

mean that anything coming from the program devd won't be logged?


The possible warning levels are emerg, alert, crit, err, warning, notice, info and debug
Code:
# Uncomment this if you wish to see messages produced by devd
# !devd
# *.>=notice                    /var/log/devd.log
 
On my system (was last installed in ~2016, more on that below, and is at version 12.3), there are zero messages from devd in /var/log/messages. And the log file /var/log/devd.log was created when the install ran (in December 2016), and hasn't had any entries added to it since.
 
Is there anything in /etc/syslog.d? That looks like typical "application dependency configuration"
 
Doesn't the line 14 in the default etc/syslog.conf
Code:
!-devd

mean that anything coming from the program devd won't be logged?

No, it means that the following block applies to every program except devd. See syslog.conf(5). I had to read it a few times ...

Code:
# Uncomment this if you wish to see messages produced by devd
# !devd
# *.>=notice                    /var/log/devd.log

I did that just after installing 12.3 last April; only a page of entries so far, mostly dropping disconnected or unresponsive clients, but handy for reporting a couple of syntax errors I made while adding code to devd.conf.
 
I use syslog-ng.
I fixed it by not logging debug unless at least log-level notice.
Code:
source src {
        system();
        udp(ip("127.0.0.1"));
        };
destination D_sql { .... }
# log level filters
filter f_notice { level(notice..emerg); };
# *.=debug                        /var/log/debug.log
log { source(src); filter(f_notice); destination(D_sql); };
 
Back
Top