Splunk Search

Is it possible to do a set command on a subsearch that already uses a set command?

nreilly
Engager

Greetings,

Is it possible to do sets of sets? e.g. (though this doesn't work)

| set diff [ | set intersect [search query | table fieldname] [search query | table fieldname ]] [search query | table fieldname]

where all queries would be returning a single column of names as strings as fieldname

If it's possible, any hints for syntax?

Thanks!

0 Karma
1 Solution

inventsekar
SplunkTrust
SplunkTrust

Edit - i verified this and its working fine.

previously i updated it's not possible.
As the doc says, the set command is a generating command and should be the first command in the search. Generating commands use a leading pipe character.

alt text

View solution in original post

inventsekar
SplunkTrust
SplunkTrust

Edit - i verified this and its working fine.

previously i updated it's not possible.
As the doc says, the set command is a generating command and should be the first command in the search. Generating commands use a leading pipe character.

alt text

Get Updates on the Splunk Community!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...