[Dnsmasq-discuss] Selective logging for "log-queries"

Richard Nelson unixabg at gmail.com
Tue Jun 23 01:32:42 BST 2015


Greetings,

agreed.

On Mon, Jun 22, 2015 at 4:17 AM, reiner otto <augustus_meyer at yahoo.de>
wrote:

> For me, it would be a great advantage, to have the option to log requests
> and reponses only, both DHCP and DNS, but omitting intermediate steps. This
> might be made more flexible, like defining sections of code to be logged
> only, as in squid. Or setting up classes of logs, like
> "debug" (as it is like "log-queries"  right now) and a more quiet, new
> "log-queries" only logging queries and responses.
>
>
>
>   Hartmut Krafft <hartmut at mail.ru> schrieb am 9:43 Montag, 22.Juni 2015:
>
>
> Hi all, maybe the OP should clarify what he wants to do. Just to unclutter
> a log for debugging, the standard tools are fine (grep&c.).
> Or does he parse the logs for another goal? Then, a terser format might
> make sense - or a completely different approach.
> Best,
> Hartmut
>
>
> Hi Richard,
>
> The question is about controlling what is logged, not where it is (and
> no, I don't have any idea except poor man's solutions such as filtering
> the whole log -- wherever it comes from -- through grep plus tailf).
>
> Ammicalement,
> Albert.
>
> Le Sun, 21 Jun 2015 20:23:27 -0500, "richardvoigt at gmail.com"
> <richardvoigt at gmail.com> a écrit :
>
> > Configure dnsmasq to log via syslog, and filter there.
> >
> > The relevant configuration option is:
> >
> > *-8, --log-facility=<facility>* Set the facility to which dnsmasq will
> send
> > syslog entries, this defaults to DAEMON, and to LOCAL0 when debug mode is
> > in operation. If the facility given contains at least one '/' character,
> it
> > is taken to be a filename, and dnsmasq logs to the given file, instead of
> > syslog. If the facility is '-' then dnsmasq logs to stderr. (Errors
> whilst
> > reading configuration will still go to syslog, but all output from a
> > successful startup, and all output whilst running, will go exclusively to
> > the file.) When logging to a file, dnsmasq will close and reopen the file
> > when it receives SIGUSR2. This allows the log file to be rotated without
> > stopping dnsmasq.
> >
> > On Sun, Jun 21, 2015 at 7:48 PM, Richard Nelson <unixabg at gmail.com>
> wrote:
> >
> > > Greetings,
> > >
> > >
> > > On Sun, Jun 21, 2015 at 1:32 AM, reiner otto <augustus_meyer at yahoo.de>
> > > wrote:
> > >
> > >> Option "log-queries" generates a lot of info. Is there any means, to
> log
> > >> less info ? Particularly, I am only interested in the DNS-request,
> arriving
> > >> at dnsmasq.
> > >>
> > >>
> > > I too am interested in how to achieve this.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150622/84b68c59/attachment.html>


More information about the Dnsmasq-discuss mailing list