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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...