Splunk Search

How do I find common values from the results of two searches?

avis1119
New Member

Hi all,

I have a use case. I have a list of the top viewed products for the last 3 months individually. Now, I want to take the common values from the 3 results and want to have the trend for those common values. Which command do I have to use in a search? Please provide suggestions as I am new to Splunk.

Thanks in advance.

Tags (4)
0 Karma

fdi01
Motivator

use appendcols command to do it

 Index=list1 source=your_source_name sourcetype=your_sourcetype_name| ...| appendcols [ search  Index=list2 source=your_source_name sourcetype=your_sourcetype_name | ...  ]| appendcols [ search  Index=list3 source=your_source_name sourcetype=your_sourcetype_name | ...  ]
0 Karma
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 ...