Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not logging dnsmasq to daemon
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Fri Jan 06, 2006 2:36 pm    Post subject: not logging dnsmasq to daemon Reply with quote

I stopped dnsmasq logging to messages by adding
Code:

filter f_messages { level(info..warn)
        and not facility(auth, authpriv, mail, news)
        and not program(snort)
        and not program(dnsmasq); };

but its still logging to daemon.log.
Ive tried changing the filter to
Code:

filter f_daemon { facility(daemon)   and not program(dnsmasq);};

and the log line is
Code:

log { source(src); filter(f_daemon); destination(daemon); };

_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Jan 06, 2006 3:20 pm    Post subject: Reply with quote

mhh wouldn't it be easier to tell dnsmasq directly *not* to log?

Code:
box # grep log /etc/dnsmasq.conf
#log-queries


with that only dhcp-related messages get logged to syslog. (plus restarts of dnsmasq)
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Fri Jan 06, 2006 3:37 pm    Post subject: Reply with quote

got that
Code:


grenada ~ # cat /etc/dnsmasq.conf |grep log
# For debugging purposes, log each DNS query as it passes through
#log-queries
grenada ~ #             

_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum