Splunk Search

Appended search not appearing in timeline results

dondky
Path Finder

All, I'm executing the following search:

eventtype=opsec_drop 127.0.0.1 tcp_flags="PUSH-ACK" | append [search sourcetype=access_combined source="/var/log/httpd/example_*"]

However the appended search results are not viewable via the time line. I do see however the events from the first search for the firewall logs. The goal was to combine both the firewall logs + the web server logs to see if we could notice a pattern and spot some irregularities.

Thanks

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You could just do this

(eventtype=opsec_drop 127.0.0.1 tcp_flags="PUSH-ACK") OR (sourcetype=access_combined source="/var/log/httpd/example_*")

to avoid the whole subsearch-append malarkey.

martin_mueller
SplunkTrust
SplunkTrust

That's true, "short-circuit" evaluation for OR means you stop evaluating once you've found one true branch. However, that's checked per event. Once an event is found to match the first branch of the OR, there's no need to check the second branch because the overall result already is true. That doesn't affect other events.

Note, this isn't exactly the same search as yours. If an event matches both conditions, your append search would return it twice while my OR search would return it once.

If your question is solved, do mark it as such by pressing the check mark to the left.

0 Karma

dondky
Path Finder

For some reason in my head OR represents if the first search executes don't proceed in displaying the search results from the second. But surrounding everything in ( ) works.

Thanks

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