GithubHelp home page GithubHelp logo

mimuret / dtap Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 6.0 14.31 MB

dtap is dnstap message router. Supported multi input and multi output.

License: Apache License 2.0

Go 99.20% Dockerfile 0.13% Shell 0.01% Makefile 0.67%

dtap's People

Contributors

dbenders avatar dependabot[bot] avatar icb- avatar mimuret avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dtap's Issues

Add a license?

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.

Does this software work with dnsdist?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.