Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Kindly include explanations for the lines of code. Thank you! 1. You will read a list of internet logs from a notepad. 2. Then you
Kindly include explanations for the lines of code. Thank you!
1. You will read a list of internet logs from a notepad. 2. Then you will extract the following. o a host (e.g., '146.204.224.152') o a user_name (e.g., 'feest6811' note: sometimes the user name is missing! In this case, use 'as the value for the username.) o the time a request was made (e.g., '21/Jun/2019:15:45:24 -0700) o the post request type (e.g., 'POST /incentivize HTTP/1.1' note: not everything is a POST!) Your task is to convert this into a list of of strings: I "host:146.204.224.152, user_name: feessesst6811, time :21/Jun/2019:15:45:24 -0700, request: POST /incentivize HTTP/Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started