<?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: Sideview Utils Search inside a PostProcess doesn't work? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41670#M2039</link>
    <description>&lt;P&gt;Sent you an email.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2013 17:51:51 GMT</pubDate>
    <dc:creator>rdevine</dc:creator>
    <dc:date>2013-03-04T17:51:51Z</dc:date>
    <item>
      <title>Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41663#M2032</link>
      <description>&lt;P&gt;Hello Splunk and Sideview Utils experts,&lt;/P&gt;

&lt;P&gt;I have a problem with nested searches that I hope someone here can help me with.&lt;/P&gt;

&lt;P&gt;I'm using the Sideview Utils Search module for my main search, downstream of which are a few PostProcess modules to display the results. These all work great. One of the PostProcess modules passes through to a SimpleResultsTable, to which I'm attempting a drilldown to launch a new search - it's this search which I'm having difficulty with.&lt;/P&gt;

&lt;P&gt;The outermost search just checks the access log:&lt;/P&gt;

&lt;PRE&gt;

    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;
        host="(myHost)" source="access.log.*" request=/service/* status=200 | fields user duration request bytes
    
&lt;/OBJECT&gt;&lt;/PRE&gt;

&lt;P&gt;The PostProcess search amends the results of the Search to give a bit more detail on the breakdown by user:&lt;/P&gt;

&lt;PRE&gt;

    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;chart count AS "Requests" sum(duration) AS "Total Duration" avg(duration) AS "Avg. Duration" sparkline(count) AS "Activity" by user
    
&lt;/OBJECT&gt;&lt;/PRE&gt;

&lt;P&gt;Inside this PostProcess I have a SimpleResultsTable:&lt;/P&gt;

&lt;PRE&gt;

    &lt;OBJECT&gt;&lt;PARAM name="drilldown" /&gt;row
&lt;/OBJECT&gt;&lt;/PRE&gt;

&lt;P&gt;Now, inside the SimpleResultsTable I'm trying to launch a whole new Search so that I can display another table showing requests broken down by user. The query doesn't bring back any results via the drilldown, even though it works as an independent search. I assume that the search is being performed against the results already passed down from the upstream search and postprocess, instead of against the full dataset. Here's the new search:&lt;/P&gt;

&lt;PRE&gt;

    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;host="(myHost)" source="access.log.*" request="/service/*" status=200 user=$click.value$ | chart count avg(duration) AS "Avg Duration" sparkline(avg(duration)) AS "Duration Trend" avg(bytes) AS "Avg Bytes" sparkline(sum(bytes)) AS "Bytes Transferred Trend" by request
    
&lt;/OBJECT&gt;&lt;/PRE&gt;

&lt;P&gt;So, that search doesn't work, but if I use another nested PostProcess instead, the PostProcess runs ok - except that now I've no way (that I know of) to add in the user=$click.value$ filtering that I need in order to show the queries for each user. Here's the PostProcess search:&lt;/P&gt;

&lt;PRE&gt;

    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;chart count avg(duration) AS "Avg Duration" sparkline(avg(duration)) AS "Duration Trend" avg(bytes) AS "Avg Bytes" sparkline(sum(bytes)) AS "Bytes Transferred Trend" by request
    
&lt;/OBJECT&gt;&lt;/PRE&gt;

&lt;P&gt;Any help anyone can offer with this would be greatly appreciated!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Andy.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:04:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41663#M2032</guid>
      <dc:creator>andrew_wilkins</dc:creator>
      <dc:date>2012-11-21T15:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41664#M2033</link>
      <description>&lt;P&gt;What's happening is that the PostProcess search from the higher layer doesn't get automatically cleared down at the second layer. &lt;/P&gt;

&lt;P&gt;For now you have to add in a &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="PostProcess"&amp;gt;
  &amp;lt;param name="search"&amp;gt; &amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;EM&gt;that&lt;/EM&gt; will clobber the first-layer postProcess from affecting the second-layer search results.   Sorry about the inconvenience and confusion.    I'm debating patching the core UI framework to make this basically happen automatically but I haven't done it yet. &lt;/P&gt;

&lt;P&gt;UPDATE:   On further review, so many people have smacked into this problem over the years, and there's so little reason for it to behave the way it does versus the way you'd expect it to,   that I've made the change and as of Sideview Utils 2.2.7,  whenever a new search is dispatched, any postprocess search that was used at a higher level will be discarded.  As a result, if you simply upgrade Sideview Utils to 2.2.7 (out later this week),  you won't get this problem anymore. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 22:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41664#M2033</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-11-26T22:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41665#M2034</link>
      <description>&lt;P&gt;Thanks Sideview, that works like a charm!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2012 09:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41665#M2034</guid>
      <dc:creator>andrew_wilkins</dc:creator>
      <dc:date>2012-11-27T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41666#M2035</link>
      <description>&lt;P&gt;I link the question I have asked some times ago, as it's the exact same problem:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/60696/sideview-utils-jschart-flashchart-doesnt-show-any-results"&gt;http://splunk-base.splunk.com/answers/60696/sideview-utils-jschart-flashchart-doesnt-show-any-results&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 12:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41666#M2035</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2012-12-05T12:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41667#M2036</link>
      <description>&lt;P&gt;Thanks. There are changes in Sideview Utils as of version 2.2.7,  that should make this class of problems go away entirely.   As of that release, whenever a new "layer" of module config implements a drilldown that ends up dispatching a new search, the remnant postProcess search from that "layer" gets automatically cleared.  Therefore there's no more need for the app developer to explicitly clear it anymore.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41667#M2036</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-12-05T16:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41668#M2037</link>
      <description>&lt;P&gt;As an FYI i just updated to 2.2.7 and am still having to add a PostProcess Module with an empty search to have lower search modules behave correctly in drilldown tables.  i can supply xml if need be.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41668#M2037</guid>
      <dc:creator>rdevine</dc:creator>
      <dc:date>2013-02-27T18:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41669#M2038</link>
      <description>&lt;P&gt;Interesting!   Yes I'll take you up on that.  Can you post or pastebin the XML? Maybe it represents a situation I've overlooked.  You can email it to nick [at] sideviewapps.com.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 20:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41669#M2038</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-02-27T20:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41670#M2039</link>
      <description>&lt;P&gt;Sent you an email.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2013 17:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41670#M2039</guid>
      <dc:creator>rdevine</dc:creator>
      <dc:date>2013-03-04T17:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41671#M2040</link>
      <description>&lt;P&gt;Thanks for the view you sent in. Ironically the problem is that although I patched the behavior across the entire Splunk core framework, there was a problem that prevented the Sideview Table module specifically from doing the right thing.  So the Sideview Table module has actually retained the old behavior where you need to clobber postProcess. &lt;/P&gt;

&lt;P&gt;The fix will most likely ship in the next release (2.4.4).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 02:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41671#M2040</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-03-05T02:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sideview Utils Search inside a PostProcess doesn't work?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41672#M2041</link>
      <description>&lt;P&gt;(which it did.  It went out in 2.4.4 on 3/26/2013)&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jun 2013 07:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Sideview-Utils-Search-inside-a-PostProcess-doesn-t-work/m-p/41672#M2041</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-06-08T07:06:23Z</dc:date>
    </item>
  </channel>
</rss>

