Python flask web app that takes a IIS log file, strips away garbage, and presents a graph of which IP addresses that has the most requests towards the IIS web site.
- Install Python (latest version of 3.x)
- Navigate to the root folder of this project (e.g.
C:\iis_loganalyse
) - Create a new virtual environment with venv in the project folder:
python -m venv C:\iis_loganalyse\
- Activate virtual environment
.\Scripts\activate
- Install required packages in your virtual environment
pip install -r requirements.txt
- Navigate to
flask_app\
and runpython app.py
to start the web server - The command line output should show which URL to navigate to (default http://localhost:5000)
-
In the first version of this web app, the file name of the IIS log file is hardcoded into
parse_iislog.py
. Feel free to modify this at any time :) Ideally, the user should be able to provide a log file in the browser. -
The number of IP addresses to be displayed in the graph and the table below is hardcoded into the variable
number_of_bars
inparse_iislog.py
. The user should be able to adjust this in the browser.