<?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: Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168273#M10345</link>
    <description>&lt;P&gt;The &lt;CODE&gt;AdvancedDev&lt;/CODE&gt; manual book refers to AdvancedXML, the SimpleXML reference is here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/PanelreferenceforSimplifiedXML#search"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/PanelreferenceforSimplifiedXML#search&lt;/A&gt; and the documentation is here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/Savedsearches#Post-process_searches"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/Savedsearches#Post-process_searches&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Mar 2015 20:32:30 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-03-01T20:32:30Z</dc:date>
    <item>
      <title>Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168270#M10342</link>
      <description />
      <pubDate>Sun, 21 Dec 2014 23:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168270#M10342</guid>
      <dc:creator>ashnet16</dc:creator>
      <dc:date>2014-12-21T23:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168271#M10343</link>
      <description>&lt;P&gt;SimpleXML has its own post processing, grab the Splunk 6 Dashboard Examples app from &lt;A href="https://apps.splunk.com/app/1603/"&gt;https://apps.splunk.com/app/1603/&lt;/A&gt; and take a look at the examples.&lt;/P&gt;

&lt;P&gt;The basic idea is that you define a search tag somewhere and reference it from a second search tag, post processing the results from the first search using the second search.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Dec 2014 23:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168271#M10343</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-12-21T23:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168272#M10344</link>
      <description>&lt;P&gt;I was having trouble with the documentation where the syntax seems to be different that than the Splunk 6.x Dashboard Examples. Possibly one is simple xml and the other is advanded xml? Anyways, I found the example mentioned by Martin in &lt;A href="https://apps.splunk.com/app/1603/"&gt;https://apps.splunk.com/app/1603/&lt;/A&gt; much more helpful. I also found it helpful to string both searches together and test in the search app prior to trying to embed them into a dashboard as adding two tiers to your search slight changes the way you compute statistics.&lt;/P&gt;

&lt;P&gt;3 searches before post process:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-60m latest=now index=_* | stats count by index
earliest=-60m latest=now index=_* | stats count by sourcetype
earliest=-60m latest=now index=_* | stats count by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Failed attempt for search 1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-60m latest=now index=_* | stats count by index sourcetype source | stats count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This it what I changed it to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-60m latest=now index=_* | stats count by index sourcetype source | stats sum(count) as count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/PostProcess"&gt;http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/PostProcess&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I created my own example dashboard as well:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Hidden Post Process Search Test&amp;lt;/label&amp;gt;
  &amp;lt;description&amp;gt;Test using one base search to feed to feed multiple dashboard panels&amp;lt;/description&amp;gt;
  &amp;lt;search id="internal_data"&amp;gt;
    &amp;lt;query&amp;gt;earliest=-60m latest=now index=_* | stats count by index sourcetype source&amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Index&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="internal_data"&amp;gt;
          &amp;lt;query&amp;gt;| stats sum(count) as count by index&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Sourctype&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="internal_data"&amp;gt;
          &amp;lt;query&amp;gt;| stats sum(count) as count by sourcetype&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Source&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="internal_data"&amp;gt;
          &amp;lt;query&amp;gt;| stats sum(count) as count by source&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Pasting the example from Splunk 6.x dashboard examples here:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;form&amp;gt;
    &amp;lt;label&amp;gt;Post Process Search&amp;lt;/label&amp;gt;
    &amp;lt;description&amp;gt;Each panel post processes the base search through a separate search pipeline.&amp;lt;/description&amp;gt;
    &amp;lt;search id="internal_data"&amp;gt;
    &amp;lt;query&amp;gt;index=_internal | head 1000&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
    &amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
    &amp;lt;default&amp;gt;
    &amp;lt;earliestTime&amp;gt;-24h&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
    &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;Events over Time&amp;lt;/title&amp;gt;
    &amp;lt;search base="internal_data"&amp;gt;
    &amp;lt;query&amp;gt;timechart count&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
    &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;Top Sourcetypes&amp;lt;/title&amp;gt;
    &amp;lt;search base="internal_data"&amp;gt;
    &amp;lt;query&amp;gt;top limit=100 sourcetype | eval percent = round(percent,2)&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Feb 2015 21:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168272#M10344</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-02-23T21:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168273#M10345</link>
      <description>&lt;P&gt;The &lt;CODE&gt;AdvancedDev&lt;/CODE&gt; manual book refers to AdvancedXML, the SimpleXML reference is here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/PanelreferenceforSimplifiedXML#search"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/PanelreferenceforSimplifiedXML#search&lt;/A&gt; and the documentation is here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/Savedsearches#Post-process_searches"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Viz/Savedsearches#Post-process_searches&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2015 20:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168273#M10345</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-01T20:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168274#M10346</link>
      <description>&lt;P&gt;Do you know if the ability to set/hide one or more base searches will be coming to the Splunk UI in a future version?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2015 22:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168274#M10346</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-01T22:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the hidden post-processing module in simple XML?  Or is that only a feature of advance xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168275#M10347</link>
      <description>&lt;P&gt;Thanks, Martin&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2015 22:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-I-use-the-hidden-post-processing-module-in-simple-XML-Or-is/m-p/168275#M10347</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2015-03-01T22:45:07Z</dc:date>
    </item>
  </channel>
</rss>

