Splunk Search

Can I chain together two searches in Splunk Web?

gehogan3
Explorer

Is it possible to chain together two searches? Basically, need to grab the IP address from my webserver logs (if it received a 503 status code) and match it up with my app server logs (log4j).

This gives me the list of apache calls which resulted in a 503 status code:

index=weblogs status=503

I want to use "clientip" from these matches as the key for a lookup on another index.

Is that possible?

Thanks!

Tags (1)
0 Karma

ChrisG
Splunk Employee
Splunk Employee

You should be able to use subsearches for this. See How subsearches work in the documentation.

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...