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!

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