Splunk Search

Can i write a base search in another base search

renuka
Path Finder

<search id="base_query_filter">
<query>
      Index=a,sourcetype=x,eval y=A+B</query>
</search>

<search id="base_query">
<query>
index=a,sourcetype=x,eval y=A+B -(here can i consider the base_query_filter base search)
join type =inner max=0(index=b,sourtype=y)</query>
<search>

Is it possible to consider one base search in another base search id?

Thank You in advance

Renuka

Labels (1)
Tags (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@renuka 

 

You can try something like this.

<search id="base_query_filter">
          <query>
            Index=a,sourcetype=x,eval y=A+B
        </query>
        </search>

        <search base="base_query_filter" id="base_query">
        <query>
        join type =inner max=0(index=b,sourtype=y)</query>
        </search>

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@renuka 

 

You can try something like this.

<search id="base_query_filter">
          <query>
            Index=a,sourcetype=x,eval y=A+B
        </query>
        </search>

        <search base="base_query_filter" id="base_query">
        <query>
        join type =inner max=0(index=b,sourtype=y)</query>
        </search>

renuka
Path Finder

@kamlesh_vaghela 

 

Thank you so much 

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...