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 <[email protected]> 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, "[email protected]"
<[email protected]> 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 <[email protected]> wrote:
>
> > Greetings,
> >
> >
> > On Sun, Jun 21, 2015 at 1:32 AM, reiner otto <[email protected]>
> > 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
[email protected]
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


  
_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to