<?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: How to use REST-API to retrieve the result of a | pivot ?? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401894#M168740</link>
    <description>&lt;P&gt;The API based on the information provided by the following URL, although all code are done in C# with standard Post/Get request using HTTPWebRequest -&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 21:50:36 GMT</pubDate>
    <dc:creator>rs8888</dc:creator>
    <dc:date>2018-06-22T21:50:36Z</dc:date>
    <item>
      <title>How to use REST-API to retrieve the result of a | pivot ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401892#M168738</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Is there any sample that uses the "|pivot" in the REST API call and gets the search results data returned?  &lt;/P&gt;

&lt;P&gt;Currently, the REST API just returns some structural information such as fields, dataset.*, open_in_search, pivot_json, pivot_search but no data. Running the same query in the Splunk UI the data are returned correctly. &lt;/P&gt;

&lt;P&gt;From what I read online, I gathered that the pivot returns instructions to run the searches, but none of the provided searches works. Even using the "| tstat" that is generated by pivot when ran in the RestAPI it never completes, it just ran forever.  Whereas, running the "| tstat", command on UI sometimes returns data.&lt;/P&gt;

&lt;P&gt;Calling /search/pivot returns structural information no SEARCH RESULT DATA &lt;BR /&gt;
Calling /search/search "| tstat" it keeps running never completes.&lt;/P&gt;

&lt;P&gt;If anyone had any success by executing the "|pivot " via REST API and got search results, please advise.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401892#M168738</guid>
      <dc:creator>rs8888</dc:creator>
      <dc:date>2020-09-29T20:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use REST-API to retrieve the result of a | pivot ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401893#M168739</link>
      <description>&lt;P&gt;Can you share the details of your POST / GET request to the api?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 18:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401893#M168739</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-22T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use REST-API to retrieve the result of a | pivot ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401894#M168740</link>
      <description>&lt;P&gt;The API based on the information provided by the following URL, although all code are done in C# with standard Post/Get request using HTTPWebRequest -&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 21:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401894#M168740</guid>
      <dc:creator>rs8888</dc:creator>
      <dc:date>2018-06-22T21:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use REST-API to retrieve the result of a | pivot ??</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401895#M168741</link>
      <description>&lt;P&gt;Perfect can you share the code you’re using for the rest call?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 23:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-REST-API-to-retrieve-the-result-of-a-pivot/m-p/401895#M168741</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-06-22T23:06:56Z</dc:date>
    </item>
  </channel>
</rss>

