<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Brad Morgan wrote:
<blockquote cite="mid:000901c8eda6$5ffc3f60$1ff4be20$@net" type="cite">
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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?
Regards,
Brad</pre>
</blockquote>
<br>
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 :)<br>
<br>
This is what I'm currently using:<br>
<br>
<tt>[root@home logrotate.d]# cat /etc/logrotate.d/dnsmasq<br>
/var/log/dnsmasq.log {<br>
daily<br>
# missingok<br>
rotate 7<br>
compress<br>
notifempty<br>
postrotate<br>
/usr/bin/kill -s SIGUSR2 `cat /var/run/dnsmasq.pid`<br>
endscript<br>
}<br>
<br>
</tt>I'm running Fedora 9, but I doubt it'll need much tweaking for
other distributions.<br>
<br>
Paul<br>
</body>
</html>