Splunk Enterprise Security

Comparing IP Addresses after using the Join Command?

Splunk_Master01
Explorer

Hi Team,

I am trying to compare IP addresses but I am unable to find any logic that can do so with the below query:

index=index_name sourcetype="sourcetype2" (POSTEDID!=SYSTEM AND VERIFIERID!=SYSTEM)
| rename ENTRYID as Maker_User
| rename POSTEDID as Checker_User
| rename VERIFIERID as Verifier_User
| stats values(Maker_User) as maker, values(ENTRYTIME) as maker_time, values(Checker_User) as checker, values(POSTEDTIME) as checker_time, values(Verifier_User) as verifier, values(VERIFIERTIME) as verifier_time, values(AMOUNT) as amount by TRANSACTIONID
| eval USER_ID = lower(mvappend(maker,checkerverifier))
| mvexpand USER_ID
| join USER_ID type=outer
[ search index=index_name sourcetype="sourcetype1"
| eval USERID=lower(USERID)
| stats values(IP) as dev_ip by USERID]
| where isnotnull(verifier) AND amount>100000

The results I get with this are as below:

TRANSACTIONID Maker Maker Time Checker Checker Time Verifier Verifier Time Amount USERID IP
001 A 10:00 A 10:03 B 10:05 200000 A IP of A
001 A 10:00 A 10:03 B 10:05 200000 A IP of A
001 A 10:00 A 10:03 B 10:05 200000 B IP of B

I want to have a logic that can compare the IP address of A and the IP address of B so that both IP addresses are not the same.

Any assistance would be appreciated.

Labels (1)
Tags (1)
0 Karma
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.


Introducing Unified TDIR with the New Enterprise Security 8.2

Read the blog
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...