Splunk Search

Splunk to verify splunk query results

bsaujla131984
Path Finder

I have created an alert which basically checks the occurrence in particular keyword in two log files , however there is a difference of time from anywhere between 1 min to 1 hours for that keyword to appear in both log files.

Example:-

If keywork CorrID appears in Log File A, then it can appear in Log File B between anywhere from 1min to 1 hour.... So our search first checks in Log File A and then wait for an hour to check in Log File B.

Problem is when keyword does not appear in Log File B for more than 1 hour, then we get an alert, which is false, because keyword had appeared up in Log File B after 70 minutes.

So now, I want to run a search which verifies the output again in last two hours in both log files..?

Tags (1)
0 Karma

arjunpkishore5
Motivator

You can use a subquery to filter the second log based on the first. It'll be easier to explain if can you post sample searches for both searches.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...