Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Log input: 10.216.113.172 - - [04/Sep/2009:02:57:16 -0700] GET /images/filmpics/0000/0053/quietman2.jpeg HTTP/1.1 200 1077924 10.211.47.159 - - [03/Sep/2009:22:19:49 -0700] GET /quietman4.jpeg HTTP/1.1 404 212 10.211.47.159 - -

Log input: 10.216.113.172 - - [04/Sep/2009:02:57:16 -0700] "GET /images/filmpics/0000/0053/quietman2.jpeg HTTP/1.1" 200 1077924 10.211.47.159 - - [03/Sep/2009:22:19:49 -0700] "GET /quietman4.jpeg HTTP/1.1" 404 212 10.211.47.159 - - [22/Aug/2009:12:58:27 -0700] "GET /assets/img/closelabel.gif HTTP/1.1" 304 - 10.216.113.172 - - [14/Jan/2010:03:09:17 -0800] "GET /images/filmmediablock/229/Shinjuku5.jpg HTTP/1.1" 200 443005 10.211.47.159 - - [15/Oct/2009:21:21:58 -0700] "GET /assets/img/banner/ten-years-banner-grey.jpg HTTP/1.1" 304 - 10.216.113.172 - - [12/Aug/2009:05:57:55 -0700] "GET /about-us/people/ HTTP/1.1" 200 10773 10.211.47.159 - - [24/Aug/2009:13:16:26 -0700] "GET /assets/img/search-button.gif HTTP/1.1" 304 - 10.211.47.159 - - [03/Sep/2009:21:30:27 -0700] "GET /imagesewspics/0000/0017/Mike5_thumb.JPG HTTP/1.1" 304 - 10.211.47.159 - - [15/Oct/2009:20:30:43 -0700] "GET /images/filmpics/0000/0057/quietman4.jpeg HTTP/1.1" 304 - 10.211.47.159 - - [11/Aug/2009:20:34:44 -0700] "GET /assets/img/search-button.gif HTTP/1.1" 304 -

have to store likeimage text in transcribed

Question :Number of unique daily (in UTC time) hosts

Convert timestamp string into datetime type in UTC timezone

The result should be ordered from the earliest date to the latest date

desired output is a list of ints for the log file I provide the desired out put should look like

image text in transcribed

in python with pandas dataframe

REMEBER WHEN - 7 NOT ALL OF THEM ARE 7 SOME OF THEM ARE 8 OR 4 SO HAVE TO BE FROM THE DATEFRAME['TIMESTAMP']

\begin{tabular}{|l|l|l|l|l|l|l|} \hline host & timestamp & method & url & version & response_code & content_size \\ \hline 199.72.81.55 & 01/Jul/1995:00:00:010400 & GET & /history/apollo/ & HTTP/1.0 & 200 & 6245 \\ \hline unicomp6.unicomp.net & 01/Jul/1995:00:00:06 -0400 & GET & /shuttle/countdown/ & HTTP/1.0 & 200 & 3985 \\ \hline \end{tabular} :[2,1,1,2,1,1]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago