Git Product home page Git Product logo

stash53's Introduction

Stash53

A work in progres. This was originally forked from passivedns, so you're probably better off there!

Modifications to the original code

  • Disabled -X option
  • Enabled checks for all qtypes and rcodes
  • Added json.[ch] from ccan
  • Added emit.[ch] with support for ZeroMQ, Redis, and MQTT
  • Added -e to specify emitter output:
    • For Redis: 127.0.0.1/6379
    • For MQTT: 127.0.0.1/1183
  • Added -O for specifying PUB topic (Redis and MQTT)
  • Added -N for specifying "nsid" (nameserver ID)
  • Added -v option to print additionally print emitted JSON to stdout
  • Logging to files is now disabled unless -l or -L are specified

Todo

  • See Issues.

Quickstart

  1. Get ElasticSearc. You need the version used by Logstash. At the time of this writing, that would be 0.20.5. Unpack it, and launch it:
bin/elasticsearch -f
  1. Get Logstash.
  2. Create a configuration for Logstash, based upon the example in my blog post.
  3. Launch Logstash:
java -jar logstash-1.1.12-flatjar.jar agent -f dns.conf -v
  1. Launch stash53, making sure you're using the correct network interface. Something like this, for Redis output, should do.
./stash53 -i eth0                    # Interface
          -e 127.0.0.1/6379          # Redis host/port
          -l /dev/null
          -P 0
          -O dns:hippo               # list name for Redis
  1. Get Kibana3, and drop all the files on a Web server. Edit config.js to have Kibana find your ElasticSearch server.

Original README

Please see the original README

Notes

This program includes libtai which is in the public domain.

stash53's People

Contributors

gamelinux avatar jurg avatar pingtrip avatar ryancdotorg avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stash53's Issues

disable logging to logfile via options

I am interested in stash53 to parse the packets, generate the json document and ship it to logstash. it should not log to logfile as it generated unnecessary IO traffic.

Thanks for nice tool :-)

  • G

Packet capture should include all responses

Refactor packet capture to include all responses to a query in array so as to gather them in a single Logstash event. (Responses are currently gathered as distinct events.)

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.