Changes

Jump to: navigation, search

OPS435 Python Assignment 1 2017 - 3

540 bytes added, 20:28, 4 September 2017
Successful requests menu
=== Successful requests menu ===
<source>Apache Log Analyser - Successful Requests Menu
==============================================
1) How many total requests (Code 200)
3) How many requests for isomaster-1.3.13.tar.bz2
q) Return to Main Menu
</source>
Each line in the log file is in the following Apache log format:
<source>([(\d\.)]+) - - \[(.*?)\] "(.*?)" (\d+) (\d+) "(.*?)" "(.*?)"</source>
 
The questions are self-explanatory, provide answers formatted as you see fit.
 
=== Failed requests menu ===
 
Apache Log Analyser - Failed Requests Menu
==========================================
1) How many total failed requests (Codes 404, 400, 500, 403, 405, 408, 416)
2) How many invalid requests for wp-login.php
3) List the filenames for failed requests for files in /apng/assembler/data
q) Return to Main Menu
</source>
 
Again, the questions are self-explanatory once you understand the Apache combined log format.

Navigation menu