<?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: oneshot POST message body in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/oneshot-POST-message-body/m-p/42858#M7997</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;(first create an index 'test_index')&lt;/P&gt;

&lt;P&gt;curl -k -u admin:changeme -d "name=/path/to/myfile" -d "index=test_index" -d "sourcetype=test_source"  &lt;A href="https://localhost:8089/services/data/inputs/oneshot" target="_blank"&gt;https://localhost:8089/services/data/inputs/oneshot&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:40:25 GMT</pubDate>
    <dc:creator>ykys97</dc:creator>
    <dc:date>2020-09-28T12:40:25Z</dc:date>
    <item>
      <title>oneshot POST message body</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/oneshot-POST-message-body/m-p/42857#M7996</link>
      <description>&lt;P&gt;Is there a way to specify parameters in a POST to the oneshot endpoint?  I can successfully add files -&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;curl -k -u admin:changeme -d&lt;BR /&gt;
'name=/path/to/my/file'&lt;BR /&gt;
&lt;A href="https://localhost:8089/services/data/input/oneshot"&gt;https://localhost:8089/services/data/input/oneshot&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But I am not able to add any other optional parameters such as host, index, etc.  I've also tried doing a JSON POST with no luck.  Anytime I add additional parameters it complains about not having a regular file.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Kevin&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 18:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/oneshot-POST-message-body/m-p/42857#M7996</guid>
      <dc:creator>kevintelford</dc:creator>
      <dc:date>2011-07-14T18:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot POST message body</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/oneshot-POST-message-body/m-p/42858#M7997</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;(first create an index 'test_index')&lt;/P&gt;

&lt;P&gt;curl -k -u admin:changeme -d "name=/path/to/myfile" -d "index=test_index" -d "sourcetype=test_source"  &lt;A href="https://localhost:8089/services/data/inputs/oneshot" target="_blank"&gt;https://localhost:8089/services/data/inputs/oneshot&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/oneshot-POST-message-body/m-p/42858#M7997</guid>
      <dc:creator>ykys97</dc:creator>
      <dc:date>2020-09-28T12:40:25Z</dc:date>
    </item>
  </channel>
</rss>

