Question: Python is the launguage Commments if Possible 1. Your program will be parsing and analyzing log files from an Apache web server. The first thing

Python is the launguage

Commments if Possible

1. Your program will be parsing and analyzing log files from an Apache web server. The first thing your program must do is retrieve the log file across the network. It is available here: https://s3.amazonaws.com/tcmg412-fall2016/http_access_log

2. Once you download the file, you will be parsing the file in order to answer several questions:

How many total requests were made in the time period represented in the log?

How many requests were made on each day? per week? per month?

What percentage of the requests were not successful (any 4xx status code)?

What percentage of the requests were redirected elsewhere (any 3xx codes)?

What was the most-requested file?

What was the least-requested file?

3. You will need to output this data to the screen. The format you choose for this is up to you (human readable, machine readable, plain text, JSON, etc), but your decisions and the implementation should be logical and consistent.

4. Finally, it was decided that the logs should be broken into separate files by month. Your program should split the log file into 12 smaller files, where the data stored in each file are the log events for a single month. These should be written to disk in the same directory as your program file, in a logical and consistent manner.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!