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 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

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, ...