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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...