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!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...