Skip to content

rahulnandan/analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache log analyzer

Apache log analyzer is a service through which one can analyze the Apache log files.
This is based upon apachelogs python library, it uses pandas and matplotlib for reporting.

Installation

Please craete a virtual environment before running the setup.
Install all the dependencies

python -m venv analyzer
.\analyzer\Scripts\activate
pip install requirements.txt

Usage

To start the program execute below command

python .\analyze.py --filepath <path to the file>

Next, please follow the on-screen instructions

This program is to analyze the log files generated by apache server.
    Please choose:
    1 - for Top 10 requested pages and the number of requests made for each.
    2 - for Percentage of successful requests (anything in the 200s and 300s range).
    3 - for Percentage of unsuccessful requests (anything that is not in the 200s or 300s range).
    4 - for Top 10 unsuccessful page requests.
    5 - for Top 10 hosts making the most requests, displaying the IP address and number of requests made.
Enter your option: <select the option from above>
Enter 1 for bargraph or 2 for tabular report: <This option will ber visible only for top records.>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Tests TBD.

About

Apache log file analyzer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages