Splunk Search

In a search, Is there an alternative for the eventstats command?

patricianaguit
Explorer

I need to find another way instead of eventstats for my search.

Is there a way where I can tag the events and add another field based on hierarchy other than eventstats?

For example
Id 1 has different initial tags (A,B,C, and D) since A is the highest, the final tag should be "A"

ID   |                InitialTag               |  FinalTag
1                        A                            A
1                        B                            A
1                        C                            A
1                        D                            A

Tag Ranks:
A
B
C
D
0 Karma
1 Solution

harishalipaka
Motivator

hi @patricianaguit

Can you try this

you can use streamstats
or

 |stats values(InitalTag) by ID 
Thanks
Harish

View solution in original post

0 Karma

harishalipaka
Motivator

hi @patricianaguit

Can you try this

you can use streamstats
or

 |stats values(InitalTag) by ID 
Thanks
Harish
0 Karma

patricianaguit
Explorer

thank you!

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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