<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic postprocess chaining - multiple postprocess searches in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/postprocess-chaining-multiple-postprocess-searches/m-p/135278#M1934</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I was wondering if anyone have successfully done a chain of postprocesses?&lt;/P&gt;

&lt;P&gt;I'm using the django template {% postprocess ... %} but if I try to chain two or three postprocesses, I get wrong results. Here is below a very simple example, where I'm expecting the table4 to show a stats table but this is not the case. Any work around for this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{% block content %}
    {% table id="table1" managerid="search1" pageSize="10" %}
    {% table id="table2" managerid="postproc1_1" pageSize="10" %}
    {% table id="table3" managerid="postproc2" pageSize="10" %}
    {% table id="table4" managerid="postproc3" pageSize="10" %}
{% endblock content%}

{% block managers %}
    {% searchmanager
        id="search1"
        search="index=_internal | head 1000 | fields - _raw | fields sourcetype"
        earliest_time="-4h@h"
        latest_time="now"
        cache=False
        preview=False
        exec_mode="blocking" %}

    {% postprocessmanager
        id="postproc1"
        managerid="search1"
        search="search sourcetype=splunk*" %}

    {% postprocessmanager
        id="postproc1_1"
        managerid="postproc1"
        search=" search sourcetype!=splunkd | stats count as total by sourcetype" %}

    {% postprocessmanager
        id="postproc2"
        managerid="postproc1"
        search="search sourcetype=splunkd | stats count by sourcetype" %}

    {% postprocessmanager
        id="postproc3"
        managerid="postproc1_1"
        search="search sourcetype=splunk* " %}

{% endblock managers %}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Olivier&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2014 17:02:45 GMT</pubDate>
    <dc:creator>OL</dc:creator>
    <dc:date>2014-02-03T17:02:45Z</dc:date>
    <item>
      <title>postprocess chaining - multiple postprocess searches</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/postprocess-chaining-multiple-postprocess-searches/m-p/135278#M1934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I was wondering if anyone have successfully done a chain of postprocesses?&lt;/P&gt;

&lt;P&gt;I'm using the django template {% postprocess ... %} but if I try to chain two or three postprocesses, I get wrong results. Here is below a very simple example, where I'm expecting the table4 to show a stats table but this is not the case. Any work around for this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{% block content %}
    {% table id="table1" managerid="search1" pageSize="10" %}
    {% table id="table2" managerid="postproc1_1" pageSize="10" %}
    {% table id="table3" managerid="postproc2" pageSize="10" %}
    {% table id="table4" managerid="postproc3" pageSize="10" %}
{% endblock content%}

{% block managers %}
    {% searchmanager
        id="search1"
        search="index=_internal | head 1000 | fields - _raw | fields sourcetype"
        earliest_time="-4h@h"
        latest_time="now"
        cache=False
        preview=False
        exec_mode="blocking" %}

    {% postprocessmanager
        id="postproc1"
        managerid="search1"
        search="search sourcetype=splunk*" %}

    {% postprocessmanager
        id="postproc1_1"
        managerid="postproc1"
        search=" search sourcetype!=splunkd | stats count as total by sourcetype" %}

    {% postprocessmanager
        id="postproc2"
        managerid="postproc1"
        search="search sourcetype=splunkd | stats count by sourcetype" %}

    {% postprocessmanager
        id="postproc3"
        managerid="postproc1_1"
        search="search sourcetype=splunk* " %}

{% endblock managers %}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Olivier&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 17:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/postprocess-chaining-multiple-postprocess-searches/m-p/135278#M1934</guid>
      <dc:creator>OL</dc:creator>
      <dc:date>2014-02-03T17:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: postprocess chaining - multiple postprocess searches</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/postprocess-chaining-multiple-postprocess-searches/m-p/135279#M1935</link>
      <description>&lt;P&gt;Tried to do it just now with javascript and basically you can't chain it because the postprocessmanager doesn't have the same functionality as the searchmanager. &lt;/P&gt;

&lt;P&gt;Really bad Splunk Design, as this it's very inefficient to keep having to access the data from the searchmanager.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 04:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/postprocess-chaining-multiple-postprocess-searches/m-p/135279#M1935</guid>
      <dc:creator>svenwendler</dc:creator>
      <dc:date>2016-08-27T04:35:22Z</dc:date>
    </item>
  </channel>
</rss>

