Dashboards & Visualizations

Postprocess chaining possible in simple XML?

koprai
Explorer

It is great the Splunk 6.2 allows multiple base searches. However I was wondering if postprocess chaining is possible.. That is a post process search is a base search for another post process search. The following is a cooked up dashboard XML that will illustrate what i am trying. I am not getting intended results. Not sure if it is a supported feature

<dashboard>
  <label>TempPostProcessChaining</label>
    <search id="baseSearch">
      <query>|stats count as dummy</query>
    </search>
  <row>
    <panel>
      <title>First Post Process Result</title>
      <table>
        <search base="baseSearch" id="firstPostProcess">
          <query>eval a=dummy+1 | fields *</query>
        </search>
      </table>
    </panel>
  </row>
    <row>
    <panel>
      <title>Second Post Process Result</title>
      <table>
        <search base="firstPostProcess">
          <query>eval b=a+1 | fields *</query>
        </search>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I'd say no.

The observed behaviour is similar to the old AdvancedXML PostProcess Module - while you could have multiple post processes underneath each other, one would override the other so you would always have base search | post process, never base search | post process 1 | post process 2. You can see this more clearly if you add | eval c = dummy + 10 to your second post process - it is applied, but the first post process is skipped.
The docs aren't terribly clear on this, but they do say "Post-process searches: A search that further modifies results from a base search." Taking that literally, a post process will always modify the base search... exactly what we're observing here.

http://docs.splunk.com/Documentation/Splunk/6.2.3/Viz/PanelreferenceforSimplifiedXML

Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...