[dnsdist] difficulties to setup a remoteLogger
Remi Gacogne
remi.gacogne at powerdns.com
Fri Feb 21 15:19:04 UTC 2020
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/
-------------- 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/20200221/14ff5d8b/attachment.sig>
More information about the dnsdist
mailing list