<?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 How read the data from splunk using search query  using postman (not curl )get reuest. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390271#M69845</link>
    <description>&lt;P&gt;I want to know using postman how can find the result of below query &lt;BR /&gt;
sourcetype="httpevent" 69272d19-53a9-4539-b149-9fc46bbc73cf&lt;/P&gt;

&lt;P&gt;please find the attached image &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6342iB36FF5240387F98D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Dec 2018 11:00:02 GMT</pubDate>
    <dc:creator>kadamshridhar01</dc:creator>
    <dc:date>2018-12-29T11:00:02Z</dc:date>
    <item>
      <title>How read the data from splunk using search query  using postman (not curl )get reuest.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390271#M69845</link>
      <description>&lt;P&gt;I want to know using postman how can find the result of below query &lt;BR /&gt;
sourcetype="httpevent" 69272d19-53a9-4539-b149-9fc46bbc73cf&lt;/P&gt;

&lt;P&gt;please find the attached image &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6342iB36FF5240387F98D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Dec 2018 11:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390271#M69845</guid>
      <dc:creator>kadamshridhar01</dc:creator>
      <dc:date>2018-12-29T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How read the data from splunk using search query  using postman (not curl )get reuest.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390272#M69846</link>
      <description>&lt;P&gt;@kadamshridhar01 sorry your question is not clear. Do you need help with sending data through HEC (via Postman) to Splunk? Or you are already sending data to Splunk and need help with writing SPL?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Dec 2018 13:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390272#M69846</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-12-29T13:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How read the data from splunk using search query  using postman (not curl )get reuest.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390273#M69847</link>
      <description>&lt;P&gt;@niketnilay .Already data present in splunk .i want to retrieve it through postman with search criteria .I am new to splunk .what is SPL ?&lt;BR /&gt;
If you give me below details retrieve data from splunk.&lt;BR /&gt;
1)Request type (get/post) and url(&lt;A href="https://localhost:8089/?"&gt;https://localhost:8089/?&lt;/A&gt;)&lt;BR /&gt;
2)request body if any require and format &lt;BR /&gt;
3)headers list with value .&lt;/P&gt;

&lt;P&gt;Currently i am able to hit request splunk using basic auth but I don't understand how to set search criteria  to get data&lt;/P&gt;</description>
      <pubDate>Sun, 30 Dec 2018 12:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390273#M69847</guid>
      <dc:creator>kadamshridhar01</dc:creator>
      <dc:date>2018-12-30T12:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How read the data from splunk using search query  using postman (not curl )get reuest.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390274#M69848</link>
      <description>&lt;P&gt;There is a pretty good documentation available on Splunk website related to Splunk REST API.&lt;BR /&gt;
You might want to have a look at it. The link below is related to Search endpoint:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/RESTREF/RESTsearch"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/RESTREF/RESTsearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But basically what you need is:&lt;BR /&gt;
1) url is &lt;CODE&gt;&lt;A href="https://splunkserver:8089/services/jobs/export" target="test_blank"&gt;https://splunkserver:8089/services/jobs/export&lt;/A&gt;&lt;/CODE&gt;  (export - to export search results, there are other search endpoints available too)&lt;BR /&gt;
2) use basic authentication with your login name and password&lt;BR /&gt;
3) method either POST or GET (see the docs), but let's say you use &lt;CODE&gt;POST&lt;/CODE&gt;&lt;BR /&gt;
4) as request parameters (key / value pairs in Params tab in Postman) use (note, colon below is a separator between key and value):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest_time :  -1h   (last 1 hour)
latest_time : now
output_mode : json  (or csv or xml, see the docs)
search : sourcetype="httpevent" 69272d19-53a9-4539-b149-9fc46bbc73cf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results of the query will be in the format you specified in &lt;CODE&gt;output_mode&lt;/CODE&gt; parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 07:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-read-the-data-from-splunk-using-search-query-using-postman/m-p/390274#M69848</guid>
      <dc:creator>petom</dc:creator>
      <dc:date>2019-01-02T07:13:57Z</dc:date>
    </item>
  </channel>
</rss>

