QuestionQ43

VerifiedSPL and Efficient Searching

An analyst has been asked to report on VPC Flow traffic to EC2 instances in AWS and wants to examine only blocked connections for source and destination IP-address pairs. To restrict the data to what is relevant, the analyst needs source IP addresses that are attempting connections to more than five destination IP addresses and that have more than 1,000 blocked connections. Leadership also wants the report to display only the applicable source IP addresses and a list of destination IP addresses, with nothing else.

Which of the following Splunk searches fulfills these requirements?

Explanation

dc(dest_ip) returns the count of distinct destination IP addresses for each src_ip, so the filter correctly identifies sources attempting connections to more than five different destinations. count measures the total blocked connections, while values(dest_ip) returns the distinct destination-IP list. Removing count and numDestinations leaves only src_ip and listDestinations in the final results. Splunk documents that dc() counts distinct field values and that values() returns distinct values as a multivalue entry.

Learn more

Community Discussion

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