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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

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