Splunk Search

If statement help

priya0709
Path Finder

I have a table generating fields Assignee, Support_tier, HR_Country, Hostdomain,

I have to Assign some values to 'Assignee' based on some values in other fields

Eg:  if Support_tier is 901 and HR_Country is Canada the Assignee value should be 'priya'                                              also if Support_tier is 908 & 909 Assignee should be 'udit'  

Kindly help with the query?? 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eval Assignee=case(Support_tier=901 AND HR_Country="Canada","priya",Support_tier=908 OR Support_tier=909,"udit")

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval Assignee=case(Support_tier=901 AND HR_Country="Canada","priya",Support_tier=908 OR Support_tier=909,"udit")
0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...