Cisco
300-215 · Question #52
Refer to the exhibit. A network administrator creates an Apache log parser by using Python. What needs to be added in the box where the code is missing to accomplish the requirement?
The correct answer is A. r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}. That regular expression matches each octet of an IPv4 address (1–3 digits) separated by literal dots, allowing re.findall to pull every IP from the Apache log for counting.
Submitted by andres_qro· Mar 6, 2026Forensics Techniques
Question
Refer to the exhibit. A network administrator creates an Apache log parser by using Python. What needs to be added in the box where the code is missing to accomplish the requirement?
Exhibit
Options
- Ar'\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}
- Br'\b'
- Cr'\b[1-9][0-9]{2,4}\b'
- Dr'\d{1,255}.\d{1,255}.\d{1,255}.\d{1,255}
How the community answered
(20 responses)- A90% (18)
- B5% (1)
- D5% (1)
Explanation
That regular expression matches each octet of an IPv4 address (1–3 digits) separated by literal dots, allowing re.findall to pull every IP from the Apache log for counting.
Topics
#log parsing#Python regex#Apache logs#IPv4
Community Discussion
No community discussion yet for this question.
