Code Monkey home page Code Monkey logo

apache_log_analyzer's Introduction

Apache Log Analyzer

This system analyzes the access log of an Apache HTTP server.

Description

The system is capable of two main types of analysis.

  1. This system aggregates the number of accesses for each time period.
  2. This system aggregates the number of accesses for each remote host, and sorts the remote hosts in order of the number of accesses.

In addition to this, it also has three extensions.

  1. Support for multiple log files
  2. Specify the period
  3. Support for large scale data

Demo

Gif

Usage

select logfile directory

$ python analyze_apache_log.py
アクセスログディレクトリのパスを入力して下さい.: ./log_dir

Argument: The path to the logfile directory you want to use.

select the term of access log

アクセスログの期間指定しますか? [Y/n]: y
「年/月/日」の形式で半角で開始期間を入力して下さい.: 2017/4/1
「年/月/日」の形式で半角で終了期間を入力して下さい.: 2017/4/30

select function

----------機能選択----------
[1]各時間帯毎のアクセス件数を知りたい
[2]アクセスの多いリモートホストの順にアクセス件数の一覧を表示したい
[3]終了
いずれかの番号を入力して下さい.: 1

----------各時間帯毎のアクセス件数表示モード----------
時間帯幅を入力して下さい.(例:3時間毎 → 3): 3

Requirements

  • Python 3.6.4
  • apache-log-parser 1.7.0

Note

If you want to use a virtual environment,

$ source venv/bin/activate

Deactivate

(venv)$ deactivate

Licence

MIT

Author

Daiki Kou

apache_log_analyzer's People

Watchers

 avatar  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.