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 (2)
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!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...