dtap icon indicating copy to clipboard operation
dtap copied to clipboard

Does this software work with dnsdist?

Open ZAZmaster opened this issue 6 years ago • 0 comments

Try config

[[InputUnix]]
type = "sock"
Path="/var/run/dnstap.sock"
user = "dnsdist"

[[OutputFluent]]
type = "tcp"
Host = "Fluent_ip"
port = 24224
Tag  = "dnstap.mydnd"

And get error

dtap -c /root/dtap.toml -d debug
DEBU[0000] start output run                             
DEBU[0000] success open                                 
DEBU[0000] start writer                                 
INFO[0001] finish boot dtap                             
INFO[0001] start outputLoop                             
panic: protobuf tag not enough fields in Dnstap.Dnstap: 

goroutine 20 [running]:
github.com/golang/protobuf/proto.(*unmarshalInfo).computeUnmarshalInfo(0xc0001ec0a0)
        /root/go/src/github.com/golang/protobuf/proto/table_unmarshal.go:332 +0x182b
github.com/golang/protobuf/proto.(*unmarshalInfo).unmarshal(0xc0001ec0a0, 0xc00019e380, 0xc0003ac000, 0xad, 0xad, 0x417478, 0x20)
        /root/go/src/github.com/golang/protobuf/proto/table_unmarshal.go:136 +0xe54
github.com/golang/protobuf/proto.(*InternalMessageInfo).Unmarshal(0xc00018c740, 0xc65340, 0xc00019e380, 0xc0003ac000, 0xad, 0xad, 0x1, 0x0)
        /root/go/src/github.com/golang/protobuf/proto/table_unmarshal.go:63 +0x6e
github.com/golang/protobuf/proto.(*Buffer).Unmarshal(0xc0000e3d48, 0xc65340, 0xc00019e380, 0x0, 0x0)
        /root/go/src/github.com/golang/protobuf/proto/decode.go:424 +0x1f0
github.com/golang/protobuf/proto.Unmarshal(0xc0003ac000, 0xad, 0xad, 0xc65340, 0xc00019e380, 0xc00003c540, 0xadcb20)
        /root/go/src/github.com/golang/protobuf/proto/decode.go:342 +0x176
github.com/mimuret/dtap.(*DnstapFluentdOutput).write(0xc0001b40e0, 0xc0003ac000, 0xad, 0xad, 0xc000144101, 0x7effc5c64000)
        /root/go/src/github.com/mimuret/dtap/dnstap_fluentd_output.go:65 +0x7a
github.com/mimuret/dtap.(*DnstapOutput).run(0xc00018c680, 0xc66c80, 0xc00007c880, 0xc00007c880, 0xc00006bf90)
        /root/go/src/github.com/mimuret/dtap/dnstap_output.go:73 +0x176
github.com/mimuret/dtap.(*DnstapOutput).Run(0xc00018c680, 0xc66c80, 0xc0001a2440)
        /root/go/src/github.com/mimuret/dtap/dnstap_output.go:52 +0x18c
main.main.func1(0xc0001b0470, 0xc66c80, 0xc0001a2440, 0xc63440, 0xc00018c680)
        /root/go/src/github.com/mimuret/dtap/dtap/main.go:154 +0x5c
created by main.main
        /root/go/src/github.com/mimuret/dtap/dtap/main.go:152 +0x1469

ZAZmaster avatar Feb 20 '19 11:02 ZAZmaster