Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
/ http-logs-analyzer Public archive

Simple and fast HTTP logs analyzer (Apache/Nginx) for huge log files

License

Notifications You must be signed in to change notification settings

flrnull/http-logs-analyzer

Repository files navigation

Http Logs Analyzer

Parses ~ 2 000 000 lines per minute on Core i5.

Usage

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

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
  }
}

Advanced usage

# You could specify you own format for RegExps, e.g. 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

Install

git clone git://github.com/flrnull/http-logs-analyzer.git
cd http-logs-analyzer
make && make install
# Now you can use it
http-logs-analyzer -h

License

MIT

About

Simple and fast HTTP logs analyzer (Apache/Nginx) for huge log files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published