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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...