[dnsdist] difficulties to setup a remoteLogger
Ambauen Daniel (ID NET)
daniel.ambauen at id.ethz.ch
Fri Feb 21 15:39:05 UTC 2020
Hello Remi,
thanks for your quick explanation.
I’m new to Lua.
Best regards,
Daniel
> On 21 Feb 2020, at 16:19, Remi Gacogne via dnsdist <dnsdist at mailman.powerdns.com> wrote:
>
> Hi Daniel,
>
> On 2/21/20 4:13 PM, Ambauen Daniel (ID NET) via dnsdist wrote:
>> I try to setup a new remoteLogger with additional option according to the documentation.
>> newRemoteLogger(address[, timeout=2[, maxQueuedEntries=100[, reconnectWaitTime=1]]])
>>
>> I’m able to setup “simple” remoteLogger:
>> rl1 = newRemoteLogger('129.132.128.247:10532’)
>>
>> If I try to setup a new remoteLogger with additional option, my command failed.
>> rl2 = newRemoteLogger('129.132.128.247:10533', timeout=2, maxQueuedEntries=100, reconnectWaitTime=2)
>>
>>
>> [root at dnsd1-zhh ~]# dnsdist -c
>>> rl2 = newRemoteLogger('129.132.128.247:10533', timeout=2, maxQueuedEntries=100, reconnectWaitTime=2)
>> Error: [string "rl2 = newRemoteLogger('129.132.128.247:10533'..."]:1: ')' expected near '=': >
>>
>> Has anybody an idea what is wrong with my command?
>> What is the meaning of the Error message?
>
> The configuration file and the console are ingesting Lua, and you can't
> use named arguments to a function the way you are trying to do it. The
> documentation is formatted that way to provide the default values but is
> not intended to be copy/pasted. Please try this instead:
>
> rl2 = newRemoteLogger('129.132.128.247:10533', 2, 100, 2)
>
> Best regards,
> --
> Remi Gacogne
> PowerDNS.COM BV - https://www.powerdns.com/
>
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4315 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20200221/25214f4d/attachment.bin>
More information about the dnsdist
mailing list