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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...