Splunk Search

Top item from each group in transaction

ramab
Engager

I am grouping the data by using transaction (using maxspan option).
After that the requirement (final result) is to pick the first element from each group and display. How can i do that??

Tags (3)
0 Karma

Kate_Lawrence-G
Contributor

Hi,

Sorry need a little clarification; what do you mean by first element from each group?

The transaction is just going to group the events in a different sequence or by a particular field; after that transaction you still need to use some function to report on your results (stats/table/timechart).

You can however display your results by using a | top <field> limit=1 command if you only want to see the most common value from that field.

-Kate

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...