<?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 Re: Sideutils Postprocess module + splunk nullmodule = postprocess search not performed. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89097#M5879</link>
    <description>&lt;P&gt;Hm.  you're right. I don't know why I didn't think of that.  It's definitely an issue. &lt;/P&gt;

&lt;P&gt;OK.  If you put the PostProcess back,  you can replace the CustomBehavior with.... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="ResultsValueSetter"&amp;gt;
   &amp;lt;param name="fields"&amp;gt;foo&amp;lt;/param&amp;gt;
   &amp;lt;module name="CustomBehavior"&amp;gt;&amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which is even weirder.  What we have to do is ensure &lt;EM&gt;something&lt;/EM&gt; makes a request.  Your NullModule wouldn't have done it. Here ResultsValueSetter I think will make one and only one request, it'll pick up that postProcess and it'll work.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2013 01:31:22 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2013-10-09T01:31:22Z</dc:date>
    <item>
      <title>Sideutils Postprocess module + splunk nullmodule = postprocess search not performed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89094#M5876</link>
      <description>&lt;P&gt;Sideutils version : 2.4.7 (can't upgrade to latest version until next outage window due to this being on a deployment server which will restart a large number of other machines).&lt;BR /&gt;
Splunk version : 5.0.4&lt;/P&gt;

&lt;P&gt;I have a sideutils postprocess search that prior to 5.0.4 worked without a problem. Just wondering if this is a known bug with either splunk or sideutils.&lt;/P&gt;

&lt;P&gt;Details, I have a dashboard that has a base search that produces a table. I then use a postprocess module to filter out only red exception events and save them to a lookup file. This postprocess module then feeds to a child nullmodule as it has no displayable output. This filtered csv lookup is used in another dashboard to roll up several other dashboard searches into a single exception report without having to re-run expensive searches. The main reason for using a nullmodule was that using a blank table resulted in a &lt;BR /&gt;
"waiting for results" message within emailed PDF reports. By using nullmodule as the child of the postprocess I was able to hide this in the email.&lt;/P&gt;

&lt;P&gt;Since upgrading to 5.0.4 the postprocess doesn't seem to run at all when a nullmodule is used. If I change it back to a table (which will be empty) then its fine and the lookup is created.&lt;/P&gt;

&lt;P&gt;Sample xml. (i'm not quite sure how to paste xml directly so the web form takes it exactly as is &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="Search" layoutPanel="panel_row1_col1" group="Indexing Report - Last 30 Minutes" autoRun="True"&amp;gt;
   &amp;lt;param name="search"&amp;gt;
  [CDATA[ 
       index="_internal" sourcetype="splunkd" group="per_index_thruput" NOT (series="_*" OR series="/*" OR series="summary*") | rename series as index | stats count by _time, index, kbps | append [ search index="_internal" sourcetype="splunkd" LicenseUsage NOT (s="" OR s="_*" OR s="/*" OR s="summary*" OR s="tcp*" OR s="udp*") earliest=-30m@m | eval kbps=b/1024 | rename s as index | stats count by _time, index, kbps] | append [inputlookup indexes.csv | fields index] | stats avg(kbps) by index | fillnull value=0 | lookup health_indexes.csv index OUTPUT input, forwarder, comment, alert  | fillnull value=0 | search input="Realtime" AND alert="Yes" | rename index AS Index, forwarder AS "Forwarder", comment AS "Data Source", avg(kbps) as kbps | fields - alert, input | sort kbps | eval myClassFieldD=case(kbps&amp;gt;0.001,"green",kbps==0,"red")
  ]]
  &amp;lt; /param&amp;gt;
  &amp;lt;param name="earliest"&amp;gt;-30m@m&amp;lt; /param&amp;gt;
  &amp;lt;param name="latest"&amp;gt;now&amp;lt; /param&amp;gt;
  &amp;lt;module name="Table"&amp;gt;
  &amp;lt;param name="count"&amp;gt;10&amp;lt;/param&amp;gt;
  &amp;lt;param name="rowClass"&amp;gt;$row.fields.myClassFieldD$&amp;lt; /param&amp;gt; 
  &amp;lt;param name="hiddenFields"&amp;gt;myClassFieldD&amp;lt; /param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="PostProcess" layoutPanel="panel_row1_col1" group="Indexing Report - Last 30 Minutes"&amp;gt;
&amp;lt;param name="search"&amp;gt;search myClassFieldD=red | eval now=now() | eval description="Missing Index events in last 30 mins" | eval Dashboard="Index_Status" | eval DashboardDescription="REPORTS : Index Status" | eval section="indexing" | append [|stats count |eval count="null_value"| rename count as "info_search_marker" ] | outputlookup index_status_indexing_report&amp;lt;/param&amp;gt;
&amp;lt;module name="NullModule" /&amp;gt;                                
  &amp;lt; /module&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 00:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89094#M5876</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-10-09T00:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sideutils Postprocess module + splunk nullmodule = postprocess search not performed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89095#M5877</link>
      <description>&lt;P&gt;I'm not sure how this was ever working, but I believe you!&lt;/P&gt;

&lt;P&gt;The fix is to take postProcess out of this equation entirely, replace it with a second search, and then use a CustomBehavior module to get the framework to kick off your invisible search. &lt;/P&gt;

&lt;P&gt;Here's modified XML - note that instead of PostProcess + NullModule there is a Search + CustomBehavior.  Also note that the Search actually references the upstream search with $search$, as this is key.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="Search" layoutPanel="panel_row1_col1" group="Indexing Report - Last 30 Minutes" autoRun="True"&amp;gt;
  &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
     index="_internal" sourcetype="splunkd" group="per_index_thruput" NOT (series="_*" OR series="/*" OR series="summary*") | rename series as index | stats count by _time, index, kbps | append [ search index="_internal" sourcetype="splunkd" LicenseUsage NOT (s="" OR s="_*" OR s="/*" OR s="summary*" OR s="tcp*" OR s="udp*") earliest=-30m@m | eval kbps=b/1024 | rename s as index | stats count by _time, index, kbps] | append [inputlookup indexes.csv | fields index] | stats avg(kbps) by index | fillnull value=0 | lookup health_indexes.csv index OUTPUT input, forwarder, comment, alert  | fillnull value=0 | search input="Realtime" AND alert="Yes" | rename index AS Index, forwarder AS "Forwarder", comment AS "Data Source", avg(kbps) as kbps | fields - alert, input | sort kbps | eval myClassFieldD=case(kbps&amp;gt;0.001,"green",kbps==0,"red")
  ]]&amp;gt;&amp;lt; /param&amp;gt;
  &amp;lt;param name="earliest"&amp;gt;-30m@m&amp;lt; /param&amp;gt;
  &amp;lt;param name="latest"&amp;gt;now&amp;lt; /param&amp;gt;

  &amp;lt;module name="Table"&amp;gt;
    &amp;lt;param name="count"&amp;gt;10&amp;lt;/param&amp;gt;
    &amp;lt;param name="rowClass"&amp;gt;$row.fields.myClassFieldD$&amp;lt; /param&amp;gt; 
    &amp;lt;param name="hiddenFields"&amp;gt;myClassFieldD&amp;lt; /param&amp;gt;
  &amp;lt;/module&amp;gt;

  &amp;lt;module name="Search" layoutPanel="panel_row1_col1" group="Indexing Report - Last 30 Minutes"&amp;gt;
    &amp;lt;param name="search"&amp;gt;$search$ | search myClassFieldD=red | eval now=now() | eval description="Missing Index events in last 30 mins" | eval Dashboard="Index_Status" | eval DashboardDescription="REPORTS : Index Status" | eval section="indexing" | append [|stats count |eval count="null_value"| rename count as "info_search_marker" ] | outputlookup index_status_indexing_report&amp;lt;/param&amp;gt;

    &amp;lt;module name="CustomBehavior"&amp;gt;
      &amp;lt;param name="requiresDispatch"&amp;gt;True&amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2013 00:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89095#M5877</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-10-09T00:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sideutils Postprocess module + splunk nullmodule = postprocess search not performed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89096#M5878</link>
      <description>&lt;P&gt;haha. &lt;/P&gt;

&lt;P&gt;Thanks again. Will have to change it and try it out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;As it is a new search would this mean a full new search is created (as opposed how post process just reuses results from a previously run search).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 01:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89096#M5878</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-10-09T01:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sideutils Postprocess module + splunk nullmodule = postprocess search not performed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89097#M5879</link>
      <description>&lt;P&gt;Hm.  you're right. I don't know why I didn't think of that.  It's definitely an issue. &lt;/P&gt;

&lt;P&gt;OK.  If you put the PostProcess back,  you can replace the CustomBehavior with.... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="ResultsValueSetter"&amp;gt;
   &amp;lt;param name="fields"&amp;gt;foo&amp;lt;/param&amp;gt;
   &amp;lt;module name="CustomBehavior"&amp;gt;&amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which is even weirder.  What we have to do is ensure &lt;EM&gt;something&lt;/EM&gt; makes a request.  Your NullModule wouldn't have done it. Here ResultsValueSetter I think will make one and only one request, it'll pick up that postProcess and it'll work.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 01:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89097#M5879</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-10-09T01:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sideutils Postprocess module + splunk nullmodule = postprocess search not performed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89098#M5880</link>
      <description>&lt;P&gt;Just tried it and that last one works. I think it hides the "waiting for results" in the pdf too.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 02:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideutils-Postprocess-module-splunk-nullmodule-postprocess/m-p/89098#M5880</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-10-09T02:23:00Z</dc:date>
    </item>
  </channel>
</rss>

