<?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 SearchPostProcess within Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20760#M730</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created a dashboard which is too intensive with it's searches.  Each search is effectively reading fields form the same line.  In order to alleviate this loading I have created form with a search template and related postprocessing searches, which works well and reduces the load time of the dashboard.&lt;/P&gt;

&lt;P&gt;However this creates some strange behaviour in that the &lt;CODE&gt;&amp;lt;earliestTime&amp;gt;&lt;/CODE&gt; tag seems to be ignored and graphs only show the last 6 hours.&lt;/P&gt;

&lt;P&gt;Also is it possible to use postprocessing searches (preferably non-dynamic) within a dashboard?  Replacing the &lt;CODE&gt;&amp;lt;form&amp;gt;&lt;/CODE&gt; tags with &lt;CODE&gt;&amp;lt;dashboard&amp;gt;&lt;/CODE&gt; results in blank graphs, which I assume is caused by the lack of user input in the &lt;CODE&gt;&amp;lt;fieldset&amp;gt;&lt;/CODE&gt; component. &lt;/P&gt;

&lt;P&gt;Excerpt from the form is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;

  &amp;lt;label&amp;gt;order dashboard&amp;lt;/label&amp;gt;

   &amp;lt;fieldset  autoRun="true"&amp;gt;
    &amp;lt;input type="time"&amp;gt;
     &amp;lt;default&amp;gt;Last 30 days&amp;lt;/default&amp;gt;
     &amp;lt;seed&amp;gt;Last 30 days&amp;lt;/seed&amp;gt;
    &amp;lt;/input&amp;gt;

  &amp;lt;/fieldset&amp;gt;

   &amp;lt;searchTemplate&amp;gt;index="c3" source="*submitted_order_count.log" OR source="*failed_order_count.log" | fields source, _time, orderType, paymentType, count&amp;lt;/searchTemplate&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;single&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;search source="*submitted_order_count.log" AND (paymentType="Postpay" OR paymentType="Prepay") | head 2 | stats sum(count) as total | rangemap field=total low=0-199 severe=400-4000 elevated=200-399&amp;lt;/searchPostProcess&amp;gt;
      &amp;lt;title&amp;gt;Current number of 'Submitted' orders&amp;lt;/title&amp;gt;
      &amp;lt;earliestTime&amp;gt;-30m&amp;lt;/earliestTime&amp;gt;
      &amp;lt;option name="afterLabel"&amp;gt;'Submitted' orders&amp;lt;/option&amp;gt;
      &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
      &amp;lt;option name="field"&amp;gt;total&amp;lt;/option&amp;gt;
    &amp;lt;/single&amp;gt;
&amp;lt;/row&amp;gt;

 &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Submitted orders by type&amp;lt;/title&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;search source="*submitted_order_count.log" orderType!="" | timechart avg(count) by orderType limit=0&amp;lt;/searchPostProcess&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
      &amp;lt;earliestTime&amp;gt;-28d&amp;lt;/earliestTime&amp;gt;
      &amp;lt;option name="Height"&amp;gt;400px&amp;lt;/option&amp;gt;
      &amp;lt;!--&amp;lt;option name="charting.legend.placement"&amp;gt;bottom&amp;lt;/option&amp;gt;--&amp;gt;
      &amp;lt;option name="charting.legend.labelStyle.maximumWidth"&amp;gt;75&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.primaryAxisTitle.text"&amp;gt;time&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.secondaryAxisTitle.text"&amp;gt;Number of orders in 'Submitted' state&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Jul 2010 09:57:06 GMT</pubDate>
    <dc:creator>mcwomble</dc:creator>
    <dc:date>2010-07-27T09:57:06Z</dc:date>
    <item>
      <title>SearchPostProcess within Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20760#M730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created a dashboard which is too intensive with it's searches.  Each search is effectively reading fields form the same line.  In order to alleviate this loading I have created form with a search template and related postprocessing searches, which works well and reduces the load time of the dashboard.&lt;/P&gt;

&lt;P&gt;However this creates some strange behaviour in that the &lt;CODE&gt;&amp;lt;earliestTime&amp;gt;&lt;/CODE&gt; tag seems to be ignored and graphs only show the last 6 hours.&lt;/P&gt;

&lt;P&gt;Also is it possible to use postprocessing searches (preferably non-dynamic) within a dashboard?  Replacing the &lt;CODE&gt;&amp;lt;form&amp;gt;&lt;/CODE&gt; tags with &lt;CODE&gt;&amp;lt;dashboard&amp;gt;&lt;/CODE&gt; results in blank graphs, which I assume is caused by the lack of user input in the &lt;CODE&gt;&amp;lt;fieldset&amp;gt;&lt;/CODE&gt; component. &lt;/P&gt;

&lt;P&gt;Excerpt from the form is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;

  &amp;lt;label&amp;gt;order dashboard&amp;lt;/label&amp;gt;

   &amp;lt;fieldset  autoRun="true"&amp;gt;
    &amp;lt;input type="time"&amp;gt;
     &amp;lt;default&amp;gt;Last 30 days&amp;lt;/default&amp;gt;
     &amp;lt;seed&amp;gt;Last 30 days&amp;lt;/seed&amp;gt;
    &amp;lt;/input&amp;gt;

  &amp;lt;/fieldset&amp;gt;

   &amp;lt;searchTemplate&amp;gt;index="c3" source="*submitted_order_count.log" OR source="*failed_order_count.log" | fields source, _time, orderType, paymentType, count&amp;lt;/searchTemplate&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;single&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;search source="*submitted_order_count.log" AND (paymentType="Postpay" OR paymentType="Prepay") | head 2 | stats sum(count) as total | rangemap field=total low=0-199 severe=400-4000 elevated=200-399&amp;lt;/searchPostProcess&amp;gt;
      &amp;lt;title&amp;gt;Current number of 'Submitted' orders&amp;lt;/title&amp;gt;
      &amp;lt;earliestTime&amp;gt;-30m&amp;lt;/earliestTime&amp;gt;
      &amp;lt;option name="afterLabel"&amp;gt;'Submitted' orders&amp;lt;/option&amp;gt;
      &amp;lt;option name="classField"&amp;gt;range&amp;lt;/option&amp;gt;
      &amp;lt;option name="field"&amp;gt;total&amp;lt;/option&amp;gt;
    &amp;lt;/single&amp;gt;
&amp;lt;/row&amp;gt;

 &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Submitted orders by type&amp;lt;/title&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;search source="*submitted_order_count.log" orderType!="" | timechart avg(count) by orderType limit=0&amp;lt;/searchPostProcess&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
      &amp;lt;earliestTime&amp;gt;-28d&amp;lt;/earliestTime&amp;gt;
      &amp;lt;option name="Height"&amp;gt;400px&amp;lt;/option&amp;gt;
      &amp;lt;!--&amp;lt;option name="charting.legend.placement"&amp;gt;bottom&amp;lt;/option&amp;gt;--&amp;gt;
      &amp;lt;option name="charting.legend.labelStyle.maximumWidth"&amp;gt;75&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.primaryAxisTitle.text"&amp;gt;time&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.secondaryAxisTitle.text"&amp;gt;Number of orders in 'Submitted' state&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jul 2010 09:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20760#M730</guid>
      <dc:creator>mcwomble</dc:creator>
      <dc:date>2010-07-27T09:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: SearchPostProcess within Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20761#M731</link>
      <description>&lt;P&gt;One problem you will have is that only 10,000 events/results from the original search will be saved and passed to the searchPostProcessing command. Is this likely to be a problem?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 12:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20761#M731</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-27T12:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: SearchPostProcess within Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20762#M732</link>
      <description>&lt;P&gt;Yep, this could potentially limit the history of my searches.  However, for my particular search there are only 1440 events a day (1 per minute), so I would have expected a longer history than I am seeing.  &lt;/P&gt;

&lt;P&gt;This might not be such a big issue as I can always run a seperate search for anything over a week and I could reduce the amount of individual queries substantially.&lt;/P&gt;

&lt;P&gt;With this in mind is it possible to use subsearches within the dashboard as the &lt;FIELDSET&gt; tags seem to cause problems i.e lack of user interaction or defining of a search field results in blank charts.&lt;/FIELDSET&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2010 15:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20762#M732</guid>
      <dc:creator>mcwomble</dc:creator>
      <dc:date>2010-07-27T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: SearchPostProcess within Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20763#M733</link>
      <description>&lt;P&gt;I worked with one such use where I used searchTemplate and then used searchPostProcess for following queries. I could achieve best performance by limiting my time range defaulting to like 5 mins. It seems 30 days as default in your case seems too large as it could result in huge number of records while aggregating.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;default&amp;gt;
    &amp;lt;earliestTime&amp;gt;rt-5m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;rt&amp;lt;/latestTime&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SearchPostProcess-within-Dashboard/m-p/20763#M733</guid>
      <dc:creator>rahulrawlani</dc:creator>
      <dc:date>2016-11-30T09:18:59Z</dc:date>
    </item>
  </channel>
</rss>

