[Dnsmasq-discuss] Where does the complete dump go?
bod at bod.org
Thu Jul 24 18:46:17 BST 2008
Brad Morgan wrote:
>> Three options come to mind; either
>> 1) drop that threshold in syslog.conf,
>> 2) add a line to syslog.conf to log all messages logged to the DAEMON
>> facility (or whatever you've set with log-facility) to another file. Be
>> aware that the default changes to LOCAL0 if you run dnsmasq -d.
>> 3) switch to file-based logging.
> Thanks! I was able to figure out where the messages are going and after some
> experimentation, I've decided to switch to file-based logging. I expect that
> these logs could become quite large but before I dive into the writing of
> logrotate scripts, does anyone have an example I could start with?
Yes, the logs can get large quite quickly, particularly if you have
log-queries on and a mail server on the machine. A while back I ran into
a bug in dnsmasq (now fixed) where it ceased working when the log grew
to be over 2GB - I had a typo in my logrotate script :)
This is what I'm currently using:
[root at home logrotate.d]# cat /etc/logrotate.d/dnsmasq
/usr/bin/kill -s SIGUSR2 `cat /var/run/dnsmasq.pid`
I'm running Fedora 9, but I doubt it'll need much tweaking for other
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dnsmasq-discuss