Giter Club home page Giter Club logo

dtap's Introduction

DTAP - DNSTAP Message router

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

Install

go get -u github.com/mimuret/dtap/dtap

example

see example dir

Input config

Unix Socket

Make unix domain socket for server software writting DNSTAP Frame. Required parameter Path is unix domain socket path, Optional parameter User is socket owner.

[[InputUnix]]
Path="/var/run/unbound/dnstap.sock"
User="unbound"

TCP Socket

Make TCP socket for client writting DNSTAP Frame.

Required parameter Address is listen address,that default value is "0.0.0.0", Optional parameter Port is listen port, that default value is 10053.

[[InputTCP]]
Address="0.0.0.0"
Port=10053

File

Once read DNSTAP Frame from file. Can read a compress file gz, bzip2 and xz.

[[InputFile]]
Path="/var/dnscap/tap.fstrm.gz"

Tail

Tail read DNSTAP frame from files. Supported glob format.

[[InputTail]]
Path=/var/dnstap/*.fstrm

Output config

Unix Socket

Write DNSTAP frame to unix domain socket. If can't open socket, try reconnect interval 1s.

[[OutputUnix]]
Path="/var/run/unbound/dnstap.sock"

TCP Socket

Write DNSTAP frame to tcp domain socket. If can't open socket, try reconnect interval 1s.

[[OutputTCP]]
Host="otherhost.exmaple.jp"
Port=10053

File

Write DNSTAP frame to file. file path supported strftime format for file rotate.

[[OutputFile]]
Path = "/var/dnstap/dnstap-%Y%m%d-%H%M.fstrm"

Fluent

Make flatting DNSTAP message,And it forawrd to fluend host. If can't open socket, try reconnect interval 1s.

Example setting is here

[[OutputFluent]]
Host = "fluent.example.jp"
Tag  = "dnstap.message"

Kafka

Make flatting DNSTAP message,And it forawrd to kafka host.

[[OutputKafks]]
Hosts = ["kafka.example.jp:9092"]
Topic  = "dnstap_message"

Nats

Make flatting DNSTAP message,And it forawrd to nats host.

[[OutputNats]]
Host = "nats://kafka.example.jp:5000"
Subject  = "dnstap"
User = "dnstap"
Password = "hogehoge

dtap's People

Contributors

mimuret avatar

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.