<?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: Export Results from a postProcess in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83703#M5355</link>
    <description>&lt;P&gt;Many Thanks for your feedback&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2013 05:50:20 GMT</pubDate>
    <dc:creator>sbsbb</dc:creator>
    <dc:date>2013-07-04T05:50:20Z</dc:date>
    <item>
      <title>Export Results from a postProcess</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83701#M5353</link>
      <description>&lt;P&gt;I wonder if it is possible to export results from a PostProcess.&lt;BR /&gt;
If I use a "SearchControls" object, it can export results, but only from the upstream search, not from the postProcess.&lt;/P&gt;

&lt;P&gt;Is there a way to export Data from a Postprocess, or even a Table, in csv and raw format ?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 13:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83701#M5353</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-07-03T13:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results from a postProcess</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83702#M5354</link>
      <description>&lt;P&gt;It's possible for this to be implemented in the future but it's not possible right now. &lt;/P&gt;

&lt;P&gt;Good News: in the splunkd rest API, the export endpoint now does actually support passing a postprocess search as an argument called "search".  You can test this out for yourself. &lt;/P&gt;

&lt;P&gt;I ran a search of &lt;CODE&gt;index=_internal source=*metrics.log | stats count by group series&lt;/CODE&gt;,  clicked the export icon in the SearchControls module,   tracked that to this in splunkd_access.log: &lt;/P&gt;

&lt;P&gt;/servicesNS/admin/sideview_utils/search/jobs/1372868585.20/results/export?output_mode=csv&amp;amp;f=group&amp;amp;f=series&amp;amp;f=count&amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&lt;/P&gt;

&lt;P&gt;and then adding a 'search' argument, and hitting the resulting URL manually on the management port: &lt;/P&gt;

&lt;P&gt;&lt;A href="https://localhost:8089/servicesNS/admin/sideview_utils/search/jobs/1372868585.20/results/export?output_mode=csv&amp;amp;f=group&amp;amp;f=series&amp;amp;f=count&amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;search=search%20group%3Dper_sourcetype_thruput" target="_blank"&gt;https://localhost:8089/servicesNS/admin/sideview_utils/search/jobs/1372868585.20/results/export?output_mode=csv&amp;amp;f=group&amp;amp;f=series&amp;amp;f=count&amp;amp;output_time_format=%25Y-%25m-%25dT%25H%3A%25M%3A%25S.%25Q%25z&amp;amp;search=search%20group%3Dper_sourcetype_thruput&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and indeed the postprocess search does take effect. &lt;/P&gt;

&lt;P&gt;The Bad News:   The underlying support for postProcess doesn't go any higher in the code stack than that.  When you click the export icon, the Sideview code doesn't talk to splunkd's REST api directly. Instead it talks to a controller in SplunkWeb and it looks like all of that SplunkWeb code fails to pass on the postProcess argument during export (in site-packages/splunk/appserver/mrsparkle/controllers/search.py getJobAsset neglects to pass on all the kwargs if the 'isDownload' flag is set) . &lt;/P&gt;

&lt;P&gt;So in short, SearchControls could be modified to support postProcess on export, but I'd have to package a new export controller in Sideview.   It can happen and I'll probably do it eventually but it's not a quick fix I'm afraid. &lt;/P&gt;

&lt;P&gt;UPDATE: &lt;BR /&gt;
In Sideview Utils 3.0 the SearchControls module was integrated against a custom controller also contained in Sideview Utils, such that exports from that module do now correctly account for postprocess searches in the view.  &lt;A href="http://sideviewapps.com/apps/sideview-utils/" target="_blank"&gt;http://sideviewapps.com/apps/sideview-utils/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83702#M5354</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results from a postProcess</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83703#M5355</link>
      <description>&lt;P&gt;Many Thanks for your feedback&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 05:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83703#M5355</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-07-04T05:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results from a postProcess</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83704#M5356</link>
      <description>&lt;P&gt;Many Thanks for your feedback&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 05:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83704#M5356</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-07-04T05:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results from a postProcess</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83705#M5357</link>
      <description>&lt;P&gt;@sideview&lt;/P&gt;

&lt;P&gt;Let us know if you have a fix in place&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 11:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83705#M5357</guid>
      <dc:creator>ma_anand1984</dc:creator>
      <dc:date>2013-12-03T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export Results from a postProcess</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83706#M5358</link>
      <description>&lt;P&gt;Sideview Utils 3.0 released today and the SearchControls module now takes postProcess searches into account when the user exports.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://sideviewapps.com/apps/sideview-utils/"&gt;http://sideviewapps.com/apps/sideview-utils/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2013 21:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Export-Results-from-a-postProcess/m-p/83706#M5358</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-12-24T21:05:20Z</dc:date>
    </item>
  </channel>
</rss>

