Splunk Search

Searching for a string from one sourcetype in another sourcetype which is present as a list

nhvardhan58
Explorer

Hi All,

I have two source type , for example.

1) sourcetype 1
2) sourcetype 2

In sourcetype 1 I have a string which I have queried from a search and I need to search if this string is present in sourcetype2 which is present as a list.

example of the string in sourcetype1.

RHEL-2007:0103

I need to search the above string in Sourcetype2 which is present as a list in dictionary format, example as below.

errata: [ [-]
A
B
C
D
E
F
]

Can somebody please help.

Tags (1)
0 Karma

valiquet
Contributor

index=... sourcetype = 1 OR sourcetype = 2 | stats dc(sourcetype) AS stc by errata | where stc == 2

OR

index=... sourcetype = 2 [ |inputlookup errata |format]

0 Karma

valiquet
Contributor

What is the output of your first search?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...