Splunk Search

How to get the Max out of row and field name of the max value

sangs8788
Communicator

Hi,

I have below resultset in place.

Screenshot 2020-11-30 at 4.35.38 PM.png

How do I get the Max by row and the Month when the Max happened. Something like below result

ModuleMonth when Max occuredMax Value
AppSDKAug-20204.21
CommentsAug-20200.10
ControlCenterJan-20200.72

 

Thanks

Labels (4)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Working with what you have (although it might be slightly easier to change your chart command first)

| untable Module _time count
| sort Module -count
| streamstats count as row by Module 
| where row=1 
| fields - row

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Working with what you have (although it might be slightly easier to change your chart command first)

| untable Module _time count
| sort Module -count
| streamstats count as row by Module 
| where row=1 
| fields - row
0 Karma

sangs8788
Communicator

Thanks it worked

 

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, ...