<?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 call Splunk API using Postman? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683482#M233386</link>
    <description>&lt;P&gt;There are different REST endpoints for Splunk to start or retrieve searches. Some will start a search and return a search ID, others will retrieve results from a previous search job.&lt;/P&gt;&lt;P&gt;Probably the most straightforward is the /jobs/export one, which starts a job and returns results, though this will take time for the started search to complete. An example request for this endpoint would be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u &amp;lt;user_in_splunk&amp;gt; https://&amp;lt;yoursplunkhost&amp;gt;:8089/services/search/v2/jobs/export -d search="&amp;lt;yoursplsearch&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u svc_aas -d search="search index=aas sourcetype=syslog" https://splunk-prod-api.internal.xxxx.com:8089/services/search/v2/jobs/export&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Note that this curl request will request a password for the splunk user. There may be functionality in postman to supply this password.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 21:34:52 GMT</pubDate>
    <dc:creator>marnall</dc:creator>
    <dc:date>2024-04-05T21:34:52Z</dc:date>
    <item>
      <title>How to call Splunk API using Postman?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683022#M233287</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;curl -k -u svc_aas -d search="search index=aas sourcetype=syslog" &lt;A href="https://splunk-prod-api.internal.xxxx.com/services/search/jobs" target="_blank" rel="noopener"&gt;https://splunk-prod-api.internal.xxxx.com/services/search/jobs&lt;/A&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;I want to run this using Postman can someone help me frame the Postman queries to search and retrieve Splunk logs&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683022#M233287</guid>
      <dc:creator>kranthimutyala2</dc:creator>
      <dc:date>2024-04-03T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Splunk API using Postman?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683482#M233386</link>
      <description>&lt;P&gt;There are different REST endpoints for Splunk to start or retrieve searches. Some will start a search and return a search ID, others will retrieve results from a previous search job.&lt;/P&gt;&lt;P&gt;Probably the most straightforward is the /jobs/export one, which starts a job and returns results, though this will take time for the started search to complete. An example request for this endpoint would be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u &amp;lt;user_in_splunk&amp;gt; https://&amp;lt;yoursplunkhost&amp;gt;:8089/services/search/v2/jobs/export -d search="&amp;lt;yoursplsearch&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u svc_aas -d search="search index=aas sourcetype=syslog" https://splunk-prod-api.internal.xxxx.com:8089/services/search/v2/jobs/export&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Note that this curl request will request a password for the splunk user. There may be functionality in postman to supply this password.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 21:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683482#M233386</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-05T21:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to call Splunk API using Postman?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683487#M233387</link>
      <description>&lt;P&gt;The main question is whether you don't know how to use API to perform searches in which case you should star with &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/RESTREF/RESTprolog" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/RESTREF/RESTprolog&lt;/A&gt; or whether you don't know how to use podman correctly - this is out of scope of this forum but maybe someone with experience with this tool can give a hint or two.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 10:23:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-call-Splunk-API-using-Postman/m-p/683487#M233387</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-04-06T10:23:56Z</dc:date>
    </item>
  </channel>
</rss>

