<div dir="ltr">Filtering the log should be a feature of your syslog daemon.<div><br></div><div>For example, this question on SuperUser explains how to exclude certain message patterns: <a href="http://unix.stackexchange.com/questions/52860/how-to-exclude-given-lines-in-syslog-ng">http://unix.stackexchange.com/questions/52860/how-to-exclude-given-lines-in-syslog-ng</a><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 22, 2015 at 12:23 AM, Albert ARIBAUD <span dir="ltr"><<a href="mailto:albert.aribaud@free.fr" target="_blank">albert.aribaud@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Richard,<br>
<br>
The question is about controlling what is logged, not where it is (and<br>
no, I don't have any idea except poor man's solutions such as filtering<br>
the whole log -- wherever it comes from -- through grep plus tailf).<br>
<br>
Ammicalement,<br>
Albert.<br>
<br>
Le Sun, 21 Jun 2015 20:23:27 -0500, "<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>"<br>
<<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>> a écrit :<br>
<span class=""><br>
> Configure dnsmasq to log via syslog, and filter there.<br>
><br>
> The relevant configuration option is:<br>
><br>
</span>> *-8, --log-facility=<facility>* Set the facility to which dnsmasq will send<br>
<div class=""><div class="h5">> syslog entries, this defaults to DAEMON, and to LOCAL0 when debug mode is<br>
> in operation. If the facility given contains at least one '/' character, it<br>
> is taken to be a filename, and dnsmasq logs to the given file, instead of<br>
> syslog. If the facility is '-' then dnsmasq logs to stderr. (Errors whilst<br>
> reading configuration will still go to syslog, but all output from a<br>
> successful startup, and all output whilst running, will go exclusively to<br>
> the file.) When logging to a file, dnsmasq will close and reopen the file<br>
> when it receives SIGUSR2. This allows the log file to be rotated without<br>
> stopping dnsmasq.<br>
><br>
> On Sun, Jun 21, 2015 at 7:48 PM, Richard Nelson <<a href="mailto:unixabg@gmail.com">unixabg@gmail.com</a>> wrote:<br>
><br>
> > Greetings,<br>
> ><br>
> ><br>
> > On Sun, Jun 21, 2015 at 1:32 AM, reiner otto <<a href="mailto:augustus_meyer@yahoo.de">augustus_meyer@yahoo.de</a>><br>
> > wrote:<br>
> ><br>
> >> Option "log-queries" generates a lot of info. Is there any means, to log<br>
> >> less info ? Particularly, I am only interested in the DNS-request, arriving<br>
> >> at dnsmasq.<br>
> >><br>
> >><br>
> > I too am interested in how to achieve this.<br>
</div></div></blockquote></div><br></div></div></div>