[dnsdist] format logAction Rows

Remi Gacogne remi.gacogne at powerdns.com
Fri Aug 9 08:57:15 UTC 2019


Hi Frank,

On 8/8/19 3:46 PM, Lichtnau Frank wrote:> 1. Is it possible to search in
old threads whithout download all
> topics from Archiv or can I download all threads in one?

I believe you should be able to use a search engine like google to do
that, asking for answers from our mailing-list archives only with
something like:

site:https://mailman.powerdns.com logaction

> 2. I use dnsdist from buster V1.3.3 and I need a datetime in the
> LogAction file. The documentation says, I can modify the message
> before it will be written. I need a LUA function for that. But I
> don't know LUA. Has anybody an exemple for me?

I'm afraid you can't modify what LogAction will log, perhaps you are
thinking of RemoteLogAction()?
If you need a timestamp then I believe something based on
RemoteLogAction is a better solution. It will export a protobuf message
containing much more information than what we log with LogAction, and
you can select the ones you want to write to disk from the program
receiving the messages. I'm afraid it will require writing some code,
though. We do provide an example of such a program in Python at [1].

[1]: https://github.com/PowerDNS/pdns/blob/master/contrib/ProtobufLogger.py

Best regards,
-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20190809/6facb213/attachment.sig>


More information about the dnsdist mailing list