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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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