<?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: post-process not delivering all events to chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83650#M21315</link>
    <description>&lt;P&gt;Unless you think that this is affecting the timechart postprocess, the change you are suggesting doesn't help.  I only want the subset of errors.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2011 19:44:44 GMT</pubDate>
    <dc:creator>sf_user_199</dc:creator>
    <dc:date>2011-09-29T19:44:44Z</dc:date>
    <item>
      <title>post-process not delivering all events to chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83648#M21313</link>
      <description>&lt;P&gt;I have the following xml&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;module name="HiddenSearch" layoutPanel="panel_row2_col1" group="XXX" autoRun="True"&amp;gt;&lt;BR /&gt;
        &amp;lt;param name="search"&amp;gt;apache log search method=get OR method=post | eval responseStatus=case(match(status,"2\d\d"),"OK",match(status,"3\d\d"),"OK",match(status,"4\d\d"),"ERROR",match(status,"5\d\d"),"ERROR") &amp;lt;/param&amp;gt;&lt;BR /&gt;
        &amp;lt;param name="earliest"&amp;gt;-30m@m&amp;lt;/param&amp;gt;&lt;BR /&gt;
        &amp;lt;module name="HiddenPostProcess" layoutPanel="panel_row2_col1_grp1"&amp;gt;&lt;BR /&gt;
            &amp;lt;param name="search"&amp;gt;timechart count by status&amp;lt;/param&amp;gt;&lt;BR /&gt;
            &amp;lt;module name="HiddenChartFormatter"&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart"&amp;gt;column&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.legend.placement"&amp;gt;bottom&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;module name="JobProgressIndicator"/&amp;gt;&lt;BR /&gt;
                &amp;lt;module name="FlashChart"&amp;gt;&lt;BR /&gt;
                    &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;&lt;BR /&gt;
                    &amp;lt;param name="enableResize"&amp;gt;True&amp;lt;/param&amp;gt;&lt;BR /&gt;
                    &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;&lt;BR /&gt;
                        &amp;lt;module name="ViewRedirector"&amp;gt;&lt;BR /&gt;
                            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;&lt;BR /&gt;
                        &amp;lt;/module&amp;gt;&lt;BR /&gt;
                    &amp;lt;/module&amp;gt;&lt;BR /&gt;
                &amp;lt;module name="ViewRedirectorLink"&amp;gt;&lt;BR /&gt;
                    &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;/module&amp;gt;&lt;BR /&gt;
            &amp;lt;/module&amp;gt;&lt;BR /&gt;
            &amp;lt;/module&amp;gt;&lt;BR /&gt;
        &amp;lt;/module&amp;gt;&lt;BR /&gt;
        &amp;lt;module name="HiddenPostProcess" layoutPanel="panel_row2_col1_grp2"&amp;gt;&lt;BR /&gt;
            &amp;lt;param name="search"&amp;gt;top responseStatus | where match(responseStatus,"ERROR") | gauge percent 0 5 10 100&amp;lt;/param&amp;gt;&lt;BR /&gt;
&amp;lt;module name="HiddenChartFormatter"&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart"&amp;gt;fillerGauge&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart.style"&amp;gt;shiny&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart.orientation"&amp;gt;x&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart.usePercentageRange"&amp;gt;true&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;param name="charting.chart.usePercentageValue"&amp;gt;true&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;module name="JobProgressIndicator"/&amp;gt;&lt;BR /&gt;
                &amp;lt;module name="FlashChart"&amp;gt;&lt;BR /&gt;
                    &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;&lt;BR /&gt;
                    &amp;lt;param name="enableResize"&amp;gt;False&amp;lt;/param&amp;gt;&lt;BR /&gt;
                    &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;&lt;BR /&gt;
                        &amp;lt;module name="ViewRedirector"&amp;gt;&lt;BR /&gt;
                            &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;&lt;BR /&gt;
                        &amp;lt;/module&amp;gt;&lt;BR /&gt;
                    &amp;lt;/module&amp;gt;&lt;BR /&gt;
                &amp;lt;/module&amp;gt;&lt;BR /&gt;
                &amp;lt;module name="ViewRedirectorLink"&amp;gt;&lt;BR /&gt;
                    &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;&lt;BR /&gt;
                &amp;lt;/module&amp;gt;&lt;BR /&gt;
            &amp;lt;/module&amp;gt;&lt;BR /&gt;
        &amp;lt;/module&amp;gt;&lt;BR /&gt;
    &amp;lt;/module&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;What happens is that the gauge from TOP is correctly displayed, but the timechart only gets 5 minutes of data.  It should be displaying all 30 minutes of data.  Any suggestions?&lt;/P&gt;

&lt;P&gt;ETA: If you change the timechart to &lt;CODE&gt;chart count by _time&lt;/CODE&gt; then the chart will only display a 5 minute graph, vs a 30 minute graph with 5 minutes of data with timechart.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 17:48:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83648#M21313</guid>
      <dc:creator>sf_user_199</dc:creator>
      <dc:date>2011-09-29T17:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: post-process not delivering all events to chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83649#M21314</link>
      <description>&lt;P&gt;I think you'll want to switch your &lt;EM&gt;top&lt;/EM&gt; &amp;amp; your &lt;EM&gt;where&lt;/EM&gt; so that you are getting a top of ERRORs instead of subset of ERRORs from whatever topped.  &lt;/P&gt;

&lt;P&gt;from&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="search"&amp;gt;top responseStatus | where match(responseStatus,"ERROR") | gauge percent 0 5 10 100&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="search"&amp;gt;where match(responseStatus,"ERROR") | top responseStatus | gauge percent 0 5 10 100&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2011 19:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83649#M21314</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2011-09-29T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: post-process not delivering all events to chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83650#M21315</link>
      <description>&lt;P&gt;Unless you think that this is affecting the timechart postprocess, the change you are suggesting doesn't help.  I only want the subset of errors.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 19:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83650#M21315</guid>
      <dc:creator>sf_user_199</dc:creator>
      <dc:date>2011-09-29T19:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: post-process not delivering all events to chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83651#M21316</link>
      <description>&lt;P&gt;Yeah, I misread the problem/question&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 20:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83651#M21316</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2011-09-29T20:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: post-process not delivering all events to chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83652#M21317</link>
      <description>&lt;P&gt;You should check out the docs around postProcess.   In particular if the base search does not contain any transforming search commands splunk will not preserve full information about the events past the 50,000'th event. &lt;/P&gt;

&lt;P&gt;Check out the UI Examples app on Splunkbase, and read the page called "Using postProcess on dashboards". &lt;/P&gt;

&lt;P&gt;or check out the docs here. &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/PostProcess"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/PostProcess&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The answer in your case is as follows:  &lt;/P&gt;

&lt;P&gt;instead of having this search &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;apache log search method=get OR method=post | eval responseStatus=case(match(status,"2\d\d"),"OK",match(status,"3\d\d"),"OK",match(status,"4\d\d"),"ERROR",match(status,"5\d\d"),"ERROR")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You want to have this base search: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;apache log search method=get OR method=post | eval responseStatus=case(match(status,"2\d\d"),"OK",match(status,"3\d\d"),"OK",match(status,"4\d\d"),"ERROR",match(status,"5\d\d"),"ERROR") | bin _time span="1min" | stats count by _time responseStatus&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Splunk basically will not keep arbitrarily large numbers of events around.  On the other hand if the search has transforming commands, it will assemble a complete result set and not cut any corners.   Adding these bin and stats commands means that you'll have a much more compact and efficient data set to work with, with no missing information. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 03:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83652#M21317</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-09-30T03:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: post-process not delivering all events to chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83653#M21318</link>
      <description>&lt;P&gt;This worked!  The only downside to this is I had to do some trickery to get results similar to the top command.  &lt;/P&gt;

&lt;P&gt;eventstats sum(hit_count) as totalCount | eventstats sum(hit_count)  as statusCount by responseStatus | dedup responseStatus | eval percent=(statusCount/totalCount)*100 | where match(responseStatus,"ERROR") | gauge percent 0 5 10 100&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/post-process-not-delivering-all-events-to-chart/m-p/83653#M21318</guid>
      <dc:creator>sf_user_199</dc:creator>
      <dc:date>2020-09-28T09:59:59Z</dc:date>
    </item>
  </channel>
</rss>

