Splunk Search

search & sub search to match on valu-

himynamesdave
Contributor

I'm trying to create a search to validate two files match on a given field.

I want to check the all the event numbers (a field in the event) in one log file (source1) match to another log file (source2) (event timestamps are identical between log files).

In Splunk I have fields log1_num (source1) and log2_num (source 2) representing the event numbers I am looking to match on. I know I need to run a sub-search to separate the sources first, but my question is how do I then match on fields?

Thanks!

Tags (2)
0 Karma
1 Solution

gfuente
Motivator

Hello

Try with join like:

yoursearch | join _time [subsearch] | eval to compare fields | ...

Given that the timestamp are identical in both sources

Regards

View solution in original post

gfuente
Motivator

Hello

Try with join like:

yoursearch | join _time [subsearch] | eval to compare fields | ...

Given that the timestamp are identical in both sources

Regards

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

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...