Splunk Search

How do I get my top 10 search to return results per month for the last three months?

TCK101
New Member

Hello I have a Top 10 query and it's run using earliest of -3mon to latest @mon

So I would like to be able to return the top 10 results displayed per month

e.g.

Jan       Count    Feb       Count    Mar       Count             
item 1    xxxx     item 1    xxxx     item 1    xxxx             
item 2    xxxx     item 2    xxxx     item 2    xxxx             
item 3    xxxx     item 3    xxxx     item 3    xxxx  
Tags (3)
0 Karma

somesoni2
Revered Legend

Try like this

your base search | eval Month=strftime(_time,"%m/%Y") | top limit=10 item by Month
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...