<?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: HiddenPostProcess pagination issue in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44992#M2202</link>
    <description>&lt;P&gt;Thanks for this!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2011 19:03:05 GMT</pubDate>
    <dc:creator>rroberts</dc:creator>
    <dc:date>2011-08-25T19:03:05Z</dc:date>
    <item>
      <title>HiddenPostProcess pagination issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44988#M2198</link>
      <description>&lt;P&gt;Hello, I've created a view, with a textbox and a TimeRangePicker.
I use those values on a HiddenSearch, and then several HiddenPostProcess, each one with a panel with a chart and a table.
The problem I have is with the paginators for those tables. The number of pages seems to be computed for the HiddenSearch, not for each HiddenPostProcess, so every panel has the same number of pages, but only a few pages have actual content.
I'll paste some xml code, please let me know if you find some mistake:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view autoCancelInterval="90" isVisible="true"
objectMode="SimpleForm" onunloadCancelJobs="true"
template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;Application Info&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="appHeader" /&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader" /&amp;gt;
  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;*&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;False&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="Message" layoutPanel="messaging"&amp;gt;
    &amp;lt;param name="filter"&amp;gt;splunk.search.job&amp;lt;/param&amp;gt;
    &amp;lt;param name="clearOnJobDispatch"&amp;gt;True&amp;lt;/param&amp;gt;
    &amp;lt;param name="maxSize"&amp;gt;1&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="TitleBar" layoutPanel="viewHeader"&amp;gt;
    &amp;lt;param name="actionsMenuFilter"&amp;gt;dashboard&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="ExtendedFieldSearch" layoutPanel="viewHeader"&amp;gt;
    &amp;lt;param name="replacementMap"&amp;gt;
      &amp;lt;param name="arg"&amp;gt;
        &amp;lt;param name="appId"&amp;gt;
          &amp;lt;param name="value"&amp;gt;&amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
      &amp;lt;/param&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;param name="field"&amp;gt;App Id&amp;lt;/param&amp;gt;
    &amp;lt;param name="q"&amp;gt;Insert App GUID&amp;lt;/param&amp;gt;
    &amp;lt;param name="intention"&amp;gt;
      &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
      &amp;lt;param name="arg"&amp;gt;
        &amp;lt;param name="appId"&amp;gt;
          &amp;lt;param name="default"&amp;gt;Insert App GUID&amp;lt;/param&amp;gt;
          &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
      &amp;lt;/param&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;module name="TimeRangePicker"&amp;gt;
      &amp;lt;param name="searchWhenChanged"&amp;gt;True&amp;lt;/param&amp;gt;
      &amp;lt;module name="HiddenSearch" layoutPanel="panel_row2_col1"
      autoRun="True"&amp;gt;
        &amp;lt;param name="search"&amp;gt;
          &amp;lt;![CDATA[index="My_Index" $appId$]]&amp;gt;
&amp;lt;/param&amp;gt;
        &amp;lt;module name="HiddenPostProcess"
        layoutPanel="panel_row1_col2" group="Info"
        autoRun="False"&amp;gt;
          &amp;lt;param name="search"&amp;gt;
            &amp;lt;![CDATA[search "some search value" | rex "field extraction (?&amp;lt;Action&amp;gt;.*) from here" | stats count by Action]]&amp;gt;
&amp;lt;/param&amp;gt;
          &amp;lt;param name="groupLabel"&amp;gt;Info&amp;lt;/param&amp;gt;
          &amp;lt;module name="HiddenChartFormatter"&amp;gt;
            &amp;lt;param name="chart"&amp;gt;ratioBar&amp;lt;/param&amp;gt;
            &amp;lt;param name="legend.placement"&amp;gt;none&amp;lt;/param&amp;gt;
            &amp;lt;module name="FlashChart"&amp;gt;
              &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
              &amp;lt;param name="height"&amp;gt;50px&amp;lt;/param&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
        &amp;lt;module name="HiddenPostProcess"
        layoutPanel="panel_row1_col2" group="Info"
        autoRun="False"&amp;gt;
          &amp;lt;param name="search"&amp;gt;
            &amp;lt;![CDATA[search "some search value" | rex "field extraction (?&amp;lt;Action&amp;gt;.*) from here among others" | table _time, Action, Field2 | sort +_time]]&amp;gt;
&amp;lt;/param&amp;gt;
          &amp;lt;param name="groupLabel"&amp;gt;Info&amp;lt;/param&amp;gt;
          &amp;lt;module name="ViewstateAdapter"&amp;gt;
            &amp;lt;module name="HiddenFieldPicker"&amp;gt;
                            &amp;lt;module name="JobProgressIndicator"/&amp;gt;
              &amp;lt;param name="strictMode"&amp;gt;True&amp;lt;/param&amp;gt;
              &amp;lt;module name="Paginator"&amp;gt;
                &amp;lt;param name="count"&amp;gt;20&amp;lt;/param&amp;gt;
                &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
                &amp;lt;module name="EnablePreview"&amp;gt;
                  &amp;lt;param name="enable"&amp;gt;True&amp;lt;/param&amp;gt;
                  &amp;lt;param name="display"&amp;gt;False&amp;lt;/param&amp;gt;
                  &amp;lt;module name="SimpleResultsTable"&amp;gt;
                    &amp;lt;param name="count"&amp;gt;20&amp;lt;/param&amp;gt;
                    &amp;lt;param name="drilldown"&amp;gt;row&amp;lt;/param&amp;gt;
                    &amp;lt;param name="allowTransformedFieldSelect"&amp;gt;
                    True&amp;lt;/param&amp;gt;
                    &amp;lt;param name="displayRowNumbers"&amp;gt;true&amp;lt;/param&amp;gt;
                    &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;
                      &amp;lt;module name="ViewRedirector"&amp;gt;
                        &amp;lt;param name="viewTarget"&amp;gt;
                        flashtimeline&amp;lt;/param&amp;gt;
                      &amp;lt;/module&amp;gt;
                    &amp;lt;/module&amp;gt;
                  &amp;lt;/module&amp;gt;
                  &amp;lt;module name="ViewRedirectorLink"&amp;gt;
                    &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;
                  &amp;lt;/module&amp;gt;
                &amp;lt;/module&amp;gt;
              &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Sep 2010 22:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44988#M2198</guid>
      <dc:creator>hbazan</dc:creator>
      <dc:date>2010-09-07T22:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenPostProcess pagination issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44989#M2199</link>
      <description>&lt;P&gt;Im afraid this is a known problem.  The Paginator module is unable to account for the postProcess filtering.  In other words it renders the page links as though there was no postProcess - as though you wanted to page through the unfiltered set (of events or results). &lt;/P&gt;

&lt;P&gt;One could make a module that's a subclass of the Paginator, that knows to make a special check using a postProcess search of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;postProcessSearch&amp;gt; | stats count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then it would take the 'count' field that came back and use that as it's "total". &lt;/P&gt;

&lt;P&gt;I looked into implementing this for the Discover app and it's doable.  However this would involve changing a bunch of the Paginator's logic to have that extra asynchronous step.   &lt;/P&gt;

&lt;P&gt;I/we need this in several places as well so Im sure someone will get around to writing this class before too long.   Sorry that I/we havent already. &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE: &lt;A href="http://splunk-base.splunk.com/apps/22279/sideview-utils"&gt;Sideview Utils&lt;/A&gt; provides a module called Pager which has the same behavior as Paginator except that it is not subject to this bug.  If you download and install the Sideview Utils on your system you'll be able to switch over to using Pager instead of Paginator. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 06:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44989#M2199</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-09-08T06:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenPostProcess pagination issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44990#M2200</link>
      <description>&lt;P&gt;Ok, it'll be great to have this fix done. Anyway, the view is usable, although I'll have to notice people about this issue.&lt;/P&gt;

&lt;P&gt;Thanks for your reply.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 20:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44990#M2200</guid>
      <dc:creator>hbazan</dc:creator>
      <dc:date>2010-09-08T20:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenPostProcess pagination issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44991#M2201</link>
      <description>&lt;P&gt;This is now possible with the &lt;CODE&gt;Pager&lt;/CODE&gt; module in &lt;A href="http://splunk-base.splunk.com/apps/22279/sideview-utils"&gt;Sideview Utils&lt;/A&gt; (which was written by nick).&lt;/P&gt;

&lt;P&gt;From the &lt;CODE&gt;Splunk.Module.Pager&lt;/CODE&gt; docs:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Provides page links. ie "Prev 1 2 3 4 5 Next". This module behaves much like Splunk's Paginator module, except that Pager accounts for postProcess searches when they are present and automatically renders the correct number of page links. Make sure to read all documentation within the Sideview Utils app for many more key details.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 25 Aug 2011 15:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44991#M2201</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2011-08-25T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenPostProcess pagination issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44992#M2202</link>
      <description>&lt;P&gt;Thanks for this!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 19:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44992#M2202</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2011-08-25T19:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: HiddenPostProcess pagination issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44993#M2203</link>
      <description>&lt;P&gt;Yep. thanks Lowell for bumping up this question again.  Pager lives.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2011 05:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/HiddenPostProcess-pagination-issue/m-p/44993#M2203</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-08-26T05:56:23Z</dc:date>
    </item>
  </channel>
</rss>

