Re: [dnsdist] Logging a sample of queries

2019-09-16 Thread Jacob Bunk Nielsen
On 06/09/2019 10.07, Jacob Bunk Nielsen wrote: I want to log a sample of our DNS queries to dnsdist. We run dnsdist 1.3.3 under systemd. I have tried: addAction(ProbaRule(0.01), LogAction()) I would expect this to log ~1/100 of our queries. But there's obviously a bug in the docs for

[dnsdist] Logging a sample of queries

2019-09-06 Thread Jacob Bunk Nielsen
Hi I want to log a sample of our DNS queries to dnsdist. We run dnsdist 1.3.3 under systemd. I have tried: addAction(ProbaRule(0.01), LogAction()) I would expect this to log ~1/100 of our queries. But there's obviously a bug in the docs for dnsdist because LogAction() always require at

Re: [dnsdist] Logging

2019-03-21 Thread Casey Deccio
Hello again, > On Mar 19, 2019, at 2:19 PM, Jonathan Reed wrote: > > Winfried provided some help to me a few months back by pointing out that the > Protobuf example code is located in the pdns repo. > https://github.com/PowerDNS/pdns/blob/master/contrib/ProtobufLogger.py >

Re: [dnsdist] Logging

2019-03-19 Thread Casey Deccio
Sigh. Apparently my problem was that I was putting the RemoteLogAction()s after all the other actions. When I put them up front in my configuration, it worked like a champ! Thanks again for the help! Casey > On Mar 19, 2019, at 4:35 PM, Jonathan Reed wrote: > > This ought to work > >

Re: [dnsdist] Logging

2019-03-19 Thread Jonathan Reed
This ought to work remote_logger = newRemoteLogger('1.1.1.1:5140') logged_domains = {'example.com'} addAction(logged_domains, RemoteLogAction(remote_logger)) addResponseAction(logged_domains, RemoteLogResponseAction(remote_logger)) addCacheHitResponseAction(logged_domains,

Re: [dnsdist] Logging Facility

2017-01-16 Thread Alejandro Adroher Mellado
Thanks a lot Daniel, but Ubuntu 14.04 in my case. Ale. -Original Message- From: dnsdist [mailto:dnsdist-boun...@mailman.powerdns.com] On Behalf Of Daniel Stirnimann Sent: lunes, 16 de enero de 2017 15:50 To: dnsdist@mailman.powerdns.com Subject: Re: [dnsdist] Logging Facility Hello

[dnsdist] Logging Facility

2017-01-16 Thread Alejandro Adroher Mellado
Hi all! Anyone knows the logging facility I should use to control the dnsdist log messages ... I cant find it! Thanks! ___ dnsdist mailing list dnsdist@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/dnsdist