Please, could you send me your config.log?
Also what is your OS and versions of protobuf-c-dev and fstrm-dev?

On 09/01/2016 12:08 PM, Lowell Mower wrote:
I had tried that configuration but for sanity's sake, tried it again and ran:

$ knotc -c /etc/knot.conf reload

but continue to receive the error:

error: config, file '/etc/knot.conf', line 17, item 'mod-dnstap', value '' (invalid item)
critical: failed to load configuration file '/etc/knot.conf' (invalid item)

Noting also, the line the error points to is the line where the dnstap module is being declared. Below is the config file:

server:
  listen: 100.88.99.132
  nsid: knot-2.2.1-dnsproxy-0.1.0

log:
 - target: syslog
   any: info

remote:
 - id: authcore
   address: 127.0.0.1@53535

mod-dnsproxy:
 - id: sdt
   remote: authcore

mod-dnstap:
 - id: capture_all
   sink: /tmp/dnstap.tap

template:
 - id: default
   global-module: mod-dnsproxy/sdt
   global-module: mod-dnstap/capture_al

On Thu, Sep 1, 2016 at 3:00 AM, Daniel Salzman <daniel.salzman@nic.cz> wrote:
Hello,

Are you sure that the error corresponds to this configuration? I get "duplicate identifier" instead,
because you cannot redefine a section (default template).

Try this one:

server:
  listen: 100.88.99.132
  nsid: knot-2.2.1-dnsproxy-0.1.0

log:
 - target: syslog
   any: info

remote:
 - id: authcore
   address: 127.0.0.1@53535

mod-dnsproxy:
 - id: sdt
   remote: authcore

mod-dnstap:
 - id: capture_all
   sink: /tmp/dnstap.tap

template:
 - id: default
   global-module: mod-dnsproxy/sdt
   global-module: mod-dnstap/capture_all


Daniel


On 08/31/2016 09:23 PM, Lowell Mower wrote:
Hello:

I've compiled knot 2.2.1 and configured with the --enable-dnstap flag but continue to get errors when starting knot and configuring it to use dnstap to write to a file see below:

* * * * * * * * * * * * * * * * * * * * * * * *
./configure:
knot 2.2.1

Target:   linux-gnu x86_64
Compiler: gcc -std=gnu99
CFLAGS:   -g -O2 -Wall -Werror=format-security -Werror=implicit -fpredictive-commoning
LIBS:     -lcap-ng -ldl -lpthread -lm  
LibURCU:  -lurcu  
GnuTLS:   -lgnutls -lnettle  -I/usr/include/p11-kit-1
Jansson:  -ljansson  
Libedit:  -ledit  -I/usr/include/editline
LMDB:     embedded  

Sanitizer:
LibFuzzer: no

Prefix:      /usr/local
Run dir:     ${prefix}/var/run/knot
Storage dir: ${prefix}/var/lib/knot
Config dir:  ${prefix}/etc/knot

Configuration DB mapsize: 500 MiB
Timers DB mapsize:        100 MiB

Knot DNS libraries:     yes
Knot DNS daemon:        yes
Knot DNS utils:         yes
Knot DNS documentation: yes

Use SO_REUSEPORT:    yes
Fast zone parser:    no
Utilities with IDN:  no
Systemd integration: no
Dnstap support:      yes
Code coverage:       no
Bash completions:    no
PKCS 11 support:     no

Continue with 'make' command

* * * * * * * * * * * * * * * * * * * * * * * *

/etc/knot.conf 

server:
  listen: 100.88.99.132
  nsid: knot-2.2.1-dnsproxy-0.1.0

log:
 - target: syslog
   any: info

remote:
 - id: authcore
   address: 127.0.0.1@53535

mod-dnsproxy:
 - id: sdt
   remote: authcore

template:
 - id: default
   global-module: mod-dnsproxy/sdt

mod-dnstap:
 - id: capture_all
   sink: /tmp/dnstap.tap

template:
 - id: default
   global-module: mod-dnstap/capture_all

* * * * * * * * * * * * * * * * * * * * * * * *

knotc -c /etc/knot.conf reload

error: config, file '/etc/knot.conf', line 21, item 'mod-dnstap', value '' (invalid item)
error: failed to load configuration file '/etc/knot.conf' (invalid item)

* * * * * * * * * * * * * * * * * * * * * * * *

I've tried various configurations and have been using: https://www.knot-dns.cz/docs/2.x/html/configuration.html#dnstap-dnstap-enabled-query-logging as a guide.

What am I missing?


_______________________________________________
knot-dns-users mailing list
knot-dns-users@lists.nic.cz
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users