Splunk Search

Find highest and lowest salary taker employee

SA2
Explorer

Hi i need to find the name employee name who are taking high salary and low salary. please help in this

Field Names:

MonthlySalary

"First Name"

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eventstats min(MonthlySalary) as lowSalary, max(MonthlySalary) as highSalary
| where MonthlySalary=lowSalary OR MonthlySalary=highSalary

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| eventstats min(MonthlySalary) as lowSalary, max(MonthlySalary) as highSalary
| where MonthlySalary=lowSalary OR MonthlySalary=highSalary

SA2
Explorer

its working Thank you

Tags (1)
0 Karma

SA2
Explorer

Getting results for every "First Name" field. Evn Before I tired but it's not work

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What have you tried so far?

... | stats min(MonthlySalary) as lowSalary, max(MonthlySalary) as highSalary by 'First Name'
...
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...