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
SplunkTrust
SplunkTrust

@fatboy3388,

Does this work for you ?

index=msexchange | eval isDiff=if(sender_email_address==return_address,0,1)|where isDiff=1
Happy Splunking!

View solution in original post

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

@fatboy3388,

Does this work for you ?

index=msexchange | eval isDiff=if(sender_email_address==return_address,0,1)|where isDiff=1
Happy Splunking!
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
SplunkTrust
SplunkTrust

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
Happy Splunking!
0 Karma

fatboy3388
New Member

thanks for the help!! well appreciated !

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

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

Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Index This | Why do they call it hyper text?

November 2023 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

State of Splunk Careers 2023: Career Resilience and the Continued Value of Splunk

For the past three years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

The Great Resilience Quest: 9th Leaderboard Update

The ninth leaderboard update (11.9-11.22) for The Great Resilience Quest is out >> Kudos to all the ...