Giter Club home page Giter Club logo

bind-query-log-statistics's Introduction

Bind query log statistics generator

Produces a variety of statistics from one or more query logs passed on the command line.

Usage:

$ ./bind_stats.py -h
usage: bind_stats.py [-h] [--trusted [filename]] [--count [number]]
                     [--starttime [%d-%m-%y %H:%M:%S]]
                     [--endtime [%d-%m-%y %H:%M:%S]] [--querylen [number]]
                     [--topclientqry [number]]
                     filename [filename ...]

BIND's log query analyser

positional arguments:
  filename              List of BIND log files

optional arguments:
  -h, --help            show this help message and exit
  --trusted [filename]  List of trusted domains to be excluded from stats
  --count [number]      Number of queries to display, default 10
  --starttime [%d-%m-%y %H:%M:%S]
                        Analysis start time. Format %d-%m-%y %H:%M:%S
  --endtime [%d-%m-%y %H:%M:%S]
                        Analysis end time. Format %d-%m-%y %H:%M:%S
  --querylen [number]   Analyze queries longer than 
  --topclientqry [number]
                        Print all DNS queries for top  active IP's

Sample Output:

$ ./bind_stats.py bind.log.0

Processing file bind.log.0

 Generating stats... 

Summary for 16-08-2018 00:47:55 - 17-08-2018 14:08:47

Total DNS QUERIES processed : 154700                   
  A      records requested : 102236
  AAAA   records requested : 52376
  SRV    records requested : 75
  TXT    records requested : 13

Top 10 DNS names requested (short name: count):
  ntp.org: 54135
  microsoft.com: 12914
  google.com: 12605
  ...

Top 10 DNS names requested (full query name: count):
  2.debian.pool.ntp.org: 13440
  1.debian.pool.ntp.org: 13437
  3.debian.pool.ntp.org: 13434
  ...
  
Top 10 DNS clients:
 10.0.10.125 : 54313
 10.0.10.162 : 24698
 10.0.10.71 : 14843
 ...

bind-query-log-statistics's People

Contributors

konradx avatar matty9191 avatar

Watchers

 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.