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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...