DTAP
is a DNSTAP router written by Go.
DTAP
consists of input plugins, filter plugins, and output plugins. If missing any function, you can write a plugin.
go install github.com/mimuret/dtap/v2@latest
dtap is dnstap message router. Supported multi input and multi output.
License: Apache License 2.0
DTAP
is a DNSTAP router written by Go.
DTAP
consists of input plugins, filter plugins, and output plugins. If missing any function, you can write a plugin.
go install github.com/mimuret/dtap/v2@latest
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
Hello @mimuret I would like to utilize this code more extensively but I require a license to do so.
Would you be comfortable accepting an Apache License 2.0 PR? This means folks are quite free to do what they wish to do with the code and protects contributors at the same time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.