Redis ISC DHCP Log Entry Resolver.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
.ruby-gemset
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
ridler.gemspec

README.md

Redis ISC DHCP Log Entry Resolver.

Build Status

This is beta version of ridler.

Project is during development at spare time.

Description:

Simple library and executable that allows scan ISC DHCP log file and read last activity of MAC / IP address.

Install file_distribution GEM:

gem install ridler --pre

Example of usage:

Load data to Redis server:

cat /var/log/dhcpd.log | ridler

Search data by MAC/IP:

require 'ridler/reader'

@reader = Ridler::Reader.new

@reader.search("14:da:e9:96:26:3b")
@reader.search("10.1.114.210")
@reader.search("14:da:e9:96:26:3b","10.1.114.210")

Example result:

{"timestamp"=>1424960022, "log"=>"DHCPREQUEST for 10.1.247.26 from 14:da:e9:96:26:3b via eth0.608"}
{"timestamp"=>1424960022, "log"=>"DHCPACK on 10.1.247.26 to 14:da:e9:96:26:3b via eth0.608"}
{"timestamp"=>1424960040, "log"=>"DHCPINFORM from 10.1.114.210 via 10.254.245.190"}