Question 25
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 identify log entries where the time is between 14:00 and 16:59 on Fridays?
Check if 14 <= timestamp.hour < 16
Check if 14 <= timestamp.hour < 17
Check if 14 < timestamp.hour < 17
Check if timestamp.hour in range(14, 18)