All Apps and Add-ons

sql "IN" in splunk

0range
Communicator

Hello!
Is it possible to implement anything like SQL "in" clause in splunk?

like this:
select a from A where b in (select b from B)

inner join is not a good way, as I see, when there are several million of rows in A and a couple in B.

any ideas? thank you in advance

Tags (1)
0 Karma
1 Solution

Ayn
Legend

Yes. Use subsearches.

http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchTutorial/Useasubsearch

sourcetype=a [sourcetype=B | fields b] | fields a

View solution in original post

Ayn
Legend

Yes. Use subsearches.

http://docs.splunk.com/Documentation/Splunk/6.0.3/SearchTutorial/Useasubsearch

sourcetype=a [sourcetype=B | fields b] | fields a
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

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