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 > <[email protected]> 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@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 > [email protected] > https://mailman.powerdns.com/mailman/listinfo/dnsdist
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ dnsdist mailing list [email protected] https://mailman.powerdns.com/mailman/listinfo/dnsdist
