<?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 splunk 4.3 - searchPostProcess on chart component not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49472#M11867</link>
    <description>&lt;P&gt;After upgrading to 4.3 our custom forms with a &lt;EM&gt;chart&lt;/EM&gt; component started to show up the following error: &lt;/P&gt;

&lt;PRE&gt;
Search did not generate any statistical results. 
&lt;/PRE&gt;

&lt;P&gt;The &lt;EM&gt;table&lt;/EM&gt; and &lt;EM&gt;event&lt;/EM&gt; component still works with the &lt;EM&gt;searchPostProcess&lt;/EM&gt; statement as expected, only the &lt;EM&gt;chart&lt;/EM&gt; fails.&lt;/P&gt;

&lt;P&gt;The following is some example code which fails in splunk 4.3 but worked before.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;searchTemplate&amp;gt;index=*&amp;lt;/searchTemplate&amp;gt;
  &amp;lt;label&amp;gt;Test PostProcess&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;

 &amp;lt;row&amp;gt;
  &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Test Chart&amp;lt;/title&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;timechart count&amp;lt;/searchPostProcess&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&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;

&lt;P&gt;If i do the the same search directly in the chart component, it works as expected...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;!--&amp;lt;searchTemplate&amp;gt;index=*&amp;lt;/searchTemplate&amp;gt;--&amp;gt;
  &amp;lt;label&amp;gt;Test PostProcess&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
      &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;

    &amp;lt;row&amp;gt;
      &amp;lt;chart&amp;gt;
          &amp;lt;title&amp;gt;Test Chart&amp;lt;/title&amp;gt;
          &amp;lt;searchTemplate&amp;gt;index=* | timechart count&amp;lt;/searchTemplate&amp;gt;
          &amp;lt;option name="charting.chart"&amp;gt;column&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;

&lt;P&gt;somebody having the same problem? or even know a solution?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2012 14:04:07 GMT</pubDate>
    <dc:creator>chusi</dc:creator>
    <dc:date>2012-01-12T14:04:07Z</dc:date>
    <item>
      <title>splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49472#M11867</link>
      <description>&lt;P&gt;After upgrading to 4.3 our custom forms with a &lt;EM&gt;chart&lt;/EM&gt; component started to show up the following error: &lt;/P&gt;

&lt;PRE&gt;
Search did not generate any statistical results. 
&lt;/PRE&gt;

&lt;P&gt;The &lt;EM&gt;table&lt;/EM&gt; and &lt;EM&gt;event&lt;/EM&gt; component still works with the &lt;EM&gt;searchPostProcess&lt;/EM&gt; statement as expected, only the &lt;EM&gt;chart&lt;/EM&gt; fails.&lt;/P&gt;

&lt;P&gt;The following is some example code which fails in splunk 4.3 but worked before.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;searchTemplate&amp;gt;index=*&amp;lt;/searchTemplate&amp;gt;
  &amp;lt;label&amp;gt;Test PostProcess&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
    &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;

 &amp;lt;row&amp;gt;
  &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Test Chart&amp;lt;/title&amp;gt;
      &amp;lt;searchPostProcess&amp;gt;timechart count&amp;lt;/searchPostProcess&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&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;

&lt;P&gt;If i do the the same search directly in the chart component, it works as expected...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;!--&amp;lt;searchTemplate&amp;gt;index=*&amp;lt;/searchTemplate&amp;gt;--&amp;gt;
  &amp;lt;label&amp;gt;Test PostProcess&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
      &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;

    &amp;lt;row&amp;gt;
      &amp;lt;chart&amp;gt;
          &amp;lt;title&amp;gt;Test Chart&amp;lt;/title&amp;gt;
          &amp;lt;searchTemplate&amp;gt;index=* | timechart count&amp;lt;/searchTemplate&amp;gt;
          &amp;lt;option name="charting.chart"&amp;gt;column&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;

&lt;P&gt;somebody having the same problem? or even know a solution?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2012 14:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49472#M11867</guid>
      <dc:creator>chusi</dc:creator>
      <dc:date>2012-01-12T14:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49473#M11868</link>
      <description>&lt;P&gt;Same problem here...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;form&amp;gt;

   &amp;lt;label&amp;gt;Class Miner v2.0&amp;lt;/label&amp;gt;

    &amp;lt;searchTemplate&amp;gt;index="*" | fillnull value=NULL | search $name$ $class$ $grade$&amp;lt;/searchTemplate&amp;gt;

    &amp;lt;fieldset&amp;gt;

        &amp;lt;input type="dropdown" token="name"&amp;gt;
            &amp;lt;populatingSearch fieldForValue="name" fieldForLabel="name"&amp;gt;&amp;lt;![CDATA[index="summary_names" | fields
 name | dedup name | sort name ]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
            &amp;lt;prefix&amp;gt;name="&amp;lt;/prefix&amp;gt;
            &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
            &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
            &amp;lt;default&amp;gt;Any&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;

        &amp;lt;input type="dropdown" token="class"&amp;gt;
            &amp;lt;prefix&amp;gt;class="&amp;lt;/prefix&amp;gt;
            &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
            &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="CS"&amp;gt;CompSci&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="EN"&amp;gt;English&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="HI"&amp;gt;History&amp;lt;/choice&amp;gt;
            &amp;lt;choice value="MA"&amp;gt;Math&amp;lt;/choice&amp;gt;
            &amp;lt;default&amp;gt;Any&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;

        &amp;lt;input type="dropdown" token="grade"&amp;gt;
            &amp;lt;populatingSearch fieldForValue="grade" fieldForLabel="grade"&amp;gt;&amp;lt;![CDATA[index="summary_grades" | fields grade | dedup grade | sort grade]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
            &amp;lt;prefix&amp;gt;grade="&amp;lt;/prefix&amp;gt;
            &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
            &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
            &amp;lt;default&amp;gt;Any&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
    &amp;lt;/fieldset&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;chart&amp;gt;
            &amp;lt;title&amp;gt;Grades By Class&amp;lt;/title&amp;gt;
            &amp;lt;searchPostProcess&amp;gt;search class!="Unknown"| timechart count by class&amp;lt;/searchPostProcess&amp;gt; 
            &amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.layout.splitSeries"&amp;gt;True&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, 17 Jan 2012 01:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49473#M11868</guid>
      <dc:creator>swdonline</dc:creator>
      <dc:date>2012-01-17T01:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49474#M11869</link>
      <description>&lt;P&gt;Had the same problem. &lt;BR /&gt;
The fix described in this post &lt;A href="http://splunk-base.splunk.com/answers/38135/version-43-using-flash-charting-instead-of-jschart"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;worked for me.&lt;BR /&gt;
Just add &amp;lt;option name="charting.scaleX"&amp;gt;1&amp;lt;/option&amp;gt; to the chart.&lt;/P&gt;

&lt;P&gt;Also found that not all fields were available for searchPostProcess (the fields extracted at search time)&lt;BR /&gt;
Fixed that by adding '| field + *' in the searchTemplate.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 09:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49474#M11869</guid>
      <dc:creator>rruijgrok</dc:creator>
      <dc:date>2012-01-18T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49475#M11870</link>
      <description>&lt;P&gt;great! that totally fixed it! thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 09:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49475#M11870</guid>
      <dc:creator>chusi</dc:creator>
      <dc:date>2012-01-18T09:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49476#M11871</link>
      <description>&lt;P&gt;That got the chart showing again, but with sparklines.  It's no longer honoring stackmode: "stacked"&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 20:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49476#M11871</guid>
      <dc:creator>swdonline</dc:creator>
      <dc:date>2012-01-18T20:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49477#M11872</link>
      <description>&lt;P&gt;Disregard.  I had to change "splitSeries" to false.  Worked great.  Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 20:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49477#M11872</guid>
      <dc:creator>swdonline</dc:creator>
      <dc:date>2012-01-18T20:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49478#M11873</link>
      <description>&lt;P&gt;This is a bug in the new non-Flash charting module.  It crops up when the base search of a post-process operation is not itself a reporting search.  We're tracking the issue and it will likely be fixed soon.&lt;/P&gt;

&lt;P&gt;In the meantime, if you don't want to switch the chart to Flash, you can also work around it by making the base search a reporting search (which is recommended practice anyway).  Check out &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Developer/PostProcess"&gt;the docs&lt;/A&gt; for a full explanation, the gist is that you'll need to add a reporting command in the base search that includes all of the fields that are being used downstream.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 04:28:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49478#M11873</guid>
      <dc:creator>Simon_Fishel</dc:creator>
      <dc:date>2012-01-25T04:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49479#M11874</link>
      <description>&lt;P&gt;The above answer by Simon only works if the view is displaying graphs only and each event contains the same fields. &lt;BR /&gt;
My view displays graphs, tables and events based upon 1 base search and events do not necessarily have the same fields.&lt;/P&gt;

&lt;P&gt;Also I do not want aggregation or statistics in the base search, as it kills the event display.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 08:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49479#M11874</guid>
      <dc:creator>rruijgrok</dc:creator>
      <dc:date>2012-01-25T08:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: splunk 4.3 - searchPostProcess on chart component not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49480#M11875</link>
      <description>&lt;P&gt;This configuration should now work with the JSChart module in 4.3.1&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2012 03:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-4-3-searchPostProcess-on-chart-component-not-working/m-p/49480#M11875</guid>
      <dc:creator>Simon_Fishel</dc:creator>
      <dc:date>2012-03-07T03:24:40Z</dc:date>
    </item>
  </channel>
</rss>

