Reporting

Two level query

nevillehere
New Member

I'm new to Splunk and would like to know if there's a way to create a two level query such as this one below:

SELECT * FROM some_logtype WHERE ID IN (
SELECT distinct KnownID FROM some_logtype WHERE someCondition
)

Tags (1)
0 Karma

kml_uvce
Builder

search

sourcetype=secondlogtype |join ID [search sourcetype=secondlogtype]

You can use index name instead of sourcetype if sourctypes are same and index are differnt.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...