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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...