Splunk Enterprise Security

how to compare different field value and list out the result?

fatboy3388
New Member

Hi,
All i want to do is just find out email event which the (sender_email _address) is different with the (return_address) from the exchange log, could someone please help? thx

my search is :
index=msexchange | where in(sender_email_address, "") != in(return_address, "")

thx
Vincent

0 Karma
1 Solution

renjith_nair
Legend

@fatboy3388,

Does this work for you ?

index=msexchange | eval isDiff=if(sender_email_address==return_address,0,1)|where isDiff=1
---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

renjith_nair
Legend

@fatboy3388,

Does this work for you ?

index=msexchange | eval isDiff=if(sender_email_address==return_address,0,1)|where isDiff=1
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

fatboy3388
New Member

thx ... with the command above , the returned return is .. is there any way to ignore the difference between upper and lowercase letter? thx

result:
sender_email return_address
abc@test.com ABC@test.com

0 Karma

renjith_nair
Legend

yes you could do lower or upper and compare

for eg.

index=msexchange | eval isDiff=if(lower(sender_email_address)==lower(return_address),0,1)|where isDiff=1
---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

fatboy3388
New Member

thanks for the help!! well appreciated !

0 Karma

renjith_nair
Legend

@fatboy3388, Glad that it worked 🙂 . You could upvote also if the solution satisfies your requirement, so that others could also use

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...