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!

Notification Email Migration Announcement

The Notification Team is migrating our email service provider from Postmark to AWS Simple Email Service (SES) ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...