Skip to content

scratcher28/http-logs-analyzer

This branch is 1 commit ahead of, 6 commits behind flrnull/http-logs-analyzer:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d1a7c72 · Dec 11, 2013

History

53 Commits
Jun 14, 2013
Jun 7, 2013
Dec 11, 2013
Jun 17, 2013
Jun 17, 2013
Jun 17, 2013
Jun 7, 2013
Jun 17, 2013
Jun 17, 2013
May 21, 2013
Jun 17, 2013
Sep 6, 2013
Jun 20, 2013
Jun 17, 2013
Jun 20, 2013
Jun 13, 2013
Jun 20, 2013

Repository files navigation

Http Logs Analyzer

Parses ~ 2 000 000 lines per minute.

Usage

./http-logs-analyzer -f ./example/access_log

Advanced usage

# Specify own IP pattern
./http-logs-analyzer -f ./example/access_log -i "^([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)"
# List of all possible params
./http-logs-analyzer -h

Output

{
  views: 16,
  visitors: 5,
  urls: 5,
  traffic: 187990,
  lines: 24,
  fails: 8,
  crawlers: {
      Google: 2,
      Bing: 0,
      Baidu: 0,
      Yandex: 0
  },
  topUrls: {
      '/app/engine/api.php' : 4,
      '/app/modules/randomgallery.php' : 4,
      '/chat.php?id=a65' : 4,
      '/chat.php' : 2,
      '/mod.php' : 2
  },
  topRefs: {
      'http://lag.ru/index.php' : 12,
      'http://bim-bom.ru/' : 2,
      'http://wiki.org/index.php#lang=en' : 2
  },
  statusCodes: {
      '200' : 14,
      '301' : 2
  }
}

Install

git clone git://github.com/flrnull/http-logs-analyzer.git
cd http-logs-analyzer
make
make install
http-logs-analyzer -h

License

MIT

About

Simple and fast HTTP logs analyzer (Apache/Nginx)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 70.1%
  • C 13.4%
  • Erlang 9.7%
  • Perl 6.8%