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
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...