<?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 to index results from cURL? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382950#M68982</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm at a dead end. I'm just playing around and wanting to index the JSON result of a cURL command. What do I do?&lt;/P&gt;

&lt;P&gt;Is it possible to get the result of this cURL and have it indexed in Splunk?&lt;/P&gt;

&lt;P&gt;Here's my working cURL.&lt;/P&gt;

&lt;P&gt;&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/7093i9A66DB25318D8EF3/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>Tue, 21 May 2019 03:48:44 GMT</pubDate>
    <dc:creator>morethanyell</dc:creator>
    <dc:date>2019-05-21T03:48:44Z</dc:date>
    <item>
      <title>How to index results from cURL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382950#M68982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm at a dead end. I'm just playing around and wanting to index the JSON result of a cURL command. What do I do?&lt;/P&gt;

&lt;P&gt;Is it possible to get the result of this cURL and have it indexed in Splunk?&lt;/P&gt;

&lt;P&gt;Here's my working cURL.&lt;/P&gt;

&lt;P&gt;&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/7093i9A66DB25318D8EF3/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>Tue, 21 May 2019 03:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382950#M68982</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2019-05-21T03:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to index results from cURL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382951#M68983</link>
      <description>&lt;P&gt;One approach is to write the results of the curl commands to a file and have Splunk monitor that file.  Or you could use the &lt;CODE&gt;oneshot&lt;/CODE&gt; command to index the results file.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 12:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382951#M68983</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-05-21T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to index results from cURL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382952#M68984</link>
      <description>&lt;P&gt;You could set this up as a scripted input as per the docs page "&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ScriptSetup"&gt;Setting up a scripted input&lt;/A&gt;", this would result in the output of the command getting indexed.&lt;/P&gt;

&lt;P&gt;Alternatively there will likely be a SplunkBase app for this, for example the &lt;A href="https://splunkbase.splunk.com/app/4172/"&gt;Curl Command app&lt;/A&gt; or the &lt;A href="https://splunkbase.splunk.com/app/4146/"&gt;Web Tools Add-on&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 23:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382952#M68984</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2019-05-21T23:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to index results from cURL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382953#M68985</link>
      <description>&lt;P&gt;I used Curl Command from splunkbase and used &lt;CODE&gt;| collect&lt;/CODE&gt; to index the result&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 02:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-results-from-cURL/m-p/382953#M68985</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2019-06-05T02:49:07Z</dc:date>
    </item>
  </channel>
</rss>

