Splunk Search

Use field values from main search in subsearch

hawifaris11
Engager

I have a two lookup files events_lookup and risky_events_lookup . I have the following search;

| inputlookup events_lookup.csv 
| join [| inputlookup risky_events_lookup.csv | where risky_start_time<=start_time AND risky_end_time>start_time | stats count as 
high_risk_events]
| eval high_risk_period=if(high_risk_events>0, "Yes", "No")
| table *

I am looking to see if any events are taking place while risky events are, the start_time field is from the events_lookup however I cannot get the search to work. The field start_time does not translate to anything within the subsearch so therefore high_risk_events is always equal to zero. Could use some pointers, thanks

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...