Splunk Search

Limit result of a search query

pinzer
Path Finder

Hi all, how can i limit this search query to the top 5 rows?

eventtype="searchDC" Type="Audit Success" CategoryString="Logon/Logoff" Message="Logon attempt using explicit credentials*" success User_Name="*" |stats count by Target_User_Name | sort by count desc 

thanks

Tags (1)
0 Karma
1 Solution

parallaxed
Path Finder

parallaxed
Path Finder

Try

| head 5

pinzer
Path Finder

thanks a lot! bye

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...