A user wants to see the top 10 source IP addresses generating 404 errors. Which SPL is correct?
top returns the most frequent values of src_ip.
Why this answer
Option A is correct because it first filters events with `index=web status=404` to isolate only 404 errors, then uses the `top` command to count occurrences of each `src_ip` value and return the top 10 by default. This directly answers the user's request for the top 10 source IPs generating 404 errors.
Exam trap
The trap here is that candidates may confuse `top` with `sort` or `rare`, or forget to filter by `status=404`, leading them to choose options that either sort alphabetically, show least common values, or ignore the error condition entirely.
How to eliminate wrong answers
Option B is wrong because `sort src_ip` sorts the results alphabetically by source IP, not by frequency, so it does not show the top 10 IPs generating errors. Option C is wrong because it omits the `status=404` filter, returning top source IPs across all status codes, not just 404 errors. Option D is wrong because `rare` returns the least common values, not the most common (top) source IPs.