nerdexam
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

C2150-400 question #26 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)
  • A
    74% (26)
  • B
    6% (2)
  • C
    14% (5)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full C2150-400 Practice