Splunk Enterprise

Subsearch append question !!

zacksoft
Contributor

I have search query that looked like this,

index = aries sourcetype = onezone 
| fields aaa baa
| stats values(aaa) as aaa 
| table aaa
append
   [ search index = leo sourcetype =twofone
        | fields ccc
        | stats ccc ]
| stats value(aaa) as sd , values(ccc) as cc

Now the optimizedQuery option of Splunk changed the "append" command in the search and replaced it with  to "[  | " search (index = leo  sourcetype=twofone  etc..etc....".....
And my output doesn't change. Both version has same output.

My question is, in the world of subsearches is using "append" the same as  using " [ | search (index = ....."

Is using ""[ | "" better in terms of performnce than using "append "  ?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

How Splunk processes a query internally does not necessarily imply you should or can write that query and differently.

If you ran this query you would get far different results (if any at all) than with the original.

index = aries sourcetype = onezone 
| fields aaa baa
| stats values(aaa) as aaa 
| table aaa
[ search index = leo sourcetype =twofone
    | fields ccc
    | stats ccc ]
| stats value(aaa) as sd , values(ccc) as cc
---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...