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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...