Question 26
Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.
The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis
How would you extract the HTTP protocol version (e.g., HTTP/1.1) from the Request field "GET /blog/ HTTP/1.1"?
Use request.split('/')[1]
Use request.split(' ')[2]
Use request.split(' ')[1]
Use request.split('/')[2]