Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this software work with dnsdist? #1

Open
ZAZmaster opened this issue Feb 20, 2019 · 0 comments
Open

Does this software work with dnsdist? #1

ZAZmaster opened this issue Feb 20, 2019 · 0 comments

Comments

@ZAZmaster
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant