Splunk Search

Finding ip which are not exists in second index

binojmn
New Member

Hi All,

I am new to Splunk and need some help.

I have 2 index, and in both index there is a field "ip", How can I find the records which are not exists in second index?

For eg:

Index A

1.1.1.2, test.com
1.2.3.4 test1.com
2.3.4.5 test2.com
3.4.5.6 test3.com

Index B

1.2.3.4 test1.com
3.4.5.6 test3.com

Final Result (Exists in Index A, not in Index B)

1.1.1.2, test.com
2.3.4.5 test2.com

Please help...

Thanks

Tags (2)
0 Karma

somesoni2
Revered Legend

Try this

index=indexA NOT [search index=indexB | stats count by ip | table ip]
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...