Splunk Search

How to get unique Maximum value of corresponding field?

ISP8055
Path Finder

Hi there, 

I have data like this:

Server load
A65
A50
B35
C55
B45
C70

 

I want to get a maximum peak loads of each server type and display in a table format.
So,

ServerPeak load
A65
B

45

C

70


I need help in how can I do that?

Labels (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@ISP8055 

Can you please try this?

YOUR_SEARCH
| stats max(load) as load by Server

 

My Sample Search :

| makeresults 
| eval _raw="Server	load
A	65
A	50
B	35
C	55
B	45
C	70" 
| multikv forceheader=1
| table Server 	load
| stats max(load) as load by Server


 Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@ISP8055 

Can you please try this?

YOUR_SEARCH
| stats max(load) as load by Server

 

My Sample Search :

| makeresults 
| eval _raw="Server	load
A	65
A	50
B	35
C	55
B	45
C	70" 
| multikv forceheader=1
| table Server 	load
| stats max(load) as load by Server


 Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...