IBM
C2150-400 · Question #26
Assuming a Squid Proxy has logs in the following format: Timeelapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost type And these are some sample logs from a Squid server: Which…
The correct answer is A. \w+/\d+\s+(\d+)\s+. See the full explanation below for the reasoning.
Question
Assuming a Squid Proxy has logs in the following format:
Timeelapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost type And these are some sample logs from a Squid server:
Which regular expression would you use to pull out the bytes field into a custom property?
Exhibit
Options
- A\w+/\d+\s+(\d+)\s+
- B\w+/\d+\s+(\d+)\S+
- C\w+/\d+\S+(\d+)\s+
- D\w+/\D+\s+(\D+)\s+
How the community answered
(35 responses)- A74% (26)
- B6% (2)
- C14% (5)
- D6% (2)
Community Discussion
No community discussion yet for this question.
