Reporting

How to find difference between 2 search?

yatanveersingh
Engager

Hi All,

 

I am trying to search difference between 2 search:

 

search 1: 

 

index="xxx_prd" "/XX900/LT_TEST"

 

this is returning like 20 records.

 

search 2:

index="xxx_prd" "http://xxx.yyy.com/XX900/LT_TEST"

this is returning 15 records.

 

I want to get the 5 results which are different between search 1 and search 2.

 

pl advice.

 

Thanks

Yatan

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Check out the set diff command.

| set diff [ search index="xxx_prd" "/XX900/LT_TEST"]
  [ search index="xxx_prd" "http://xxx.yyy.com/XX900/LT_TEST" ]
---
If this reply helps you, Karma would be appreciated.

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
index="xxx_prd" "/XX900/LT_TEST" NOT "http://xxx.yyy.com/XX900/LT_TEST"

richgalloway
SplunkTrust
SplunkTrust

Check out the set diff command.

| set diff [ search index="xxx_prd" "/XX900/LT_TEST"]
  [ search index="xxx_prd" "http://xxx.yyy.com/XX900/LT_TEST" ]
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...