QuestionQ32

VerifiedSPL and Efficient Searching

An analyst is examining the number of failed login attempts by IP address. Which SPL command can create a temporary table that shows the number of failed login attempts per IP address during a specified time period?

Explanation

The stats command aggregates the matching failed-login events into a results table. count calculates the number of events, AS failed_attempts assigns that count a field name, and BY src_ip groups the counts by IP address; the descending sort orders the IP addresses with the most failures first. Splunk documents stats count ... BY <field> as the pattern for counting results grouped by a field.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!