<?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: HTTP Event Collector: How to send logs to Splunk Cloud from command line using curl? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202385#M40036</link>
    <description>&lt;P&gt;i facing issues with curl and I am getting an error "{"text":"Token is required","code":2}"&lt;/P&gt;

&lt;P&gt;Here is my curl:&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="https://localhost:8088/services/collector/event"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization:429AAB25-A7A0-4D40-8D1E-F05E114B069F' -d '{"event":"Hello, World!"}'&lt;/P&gt;

&lt;P&gt;Please advice.&lt;BR /&gt;
If you think I missed the word Splunk in the above uRL. I have tried below example as well. Even that does not work.&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="https://localhost:8088/services/collector/event"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk 429AAB25-A7A0-4D40-8D1E-F05E114B069F' -d '{"event":"Hello, World!"}'&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 22:32:28 GMT</pubDate>
    <dc:creator>SNaikwade</dc:creator>
    <dc:date>2017-01-05T22:32:28Z</dc:date>
    <item>
      <title>HTTP Event Collector: How to send logs to Splunk Cloud from command line using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202382#M40033</link>
      <description>&lt;P&gt;I am trying with a trial version of Splunk cloud. I created the HTTP Event Collector. Now I am trying to log into Splunk using the curl script available here &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE7F"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE7F&lt;/A&gt;. But I guess I am doing something wrong, as I am not able to hit the server. &lt;/P&gt;

&lt;P&gt;What has to be the host name of Splunk that I have to use to save the logs? &lt;/P&gt;

&lt;P&gt;This is my Splunk cloud instance &lt;A href="https://xxxxx.cloud.splunk.com"&gt;https://xxxxx.cloud.splunk.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I tried something like this, I guess which is wrong (replaced with tokenid which I got after creating the HTTP EC)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://xxxxx.cloud.splunk.com/services/collector" target="test_blank"&gt;https://xxxxx.cloud.splunk.com/services/collector&lt;/A&gt; -H 'Authorization: Splunk tokenid' -d '{"event":"Hello, World!"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 18:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202382#M40033</guid>
      <dc:creator>jyotishkp</dc:creator>
      <dc:date>2016-06-09T18:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to send logs to Splunk Cloud from command line using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202383#M40034</link>
      <description>&lt;P&gt;The URL looks a little bit fishy. You have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://xxxxx.cloud.splunk.com/services/collector" target="test_blank"&gt;https://xxxxx.cloud.splunk.com/services/collector&lt;/A&gt; -H 'Authorization: Splunk tokenid' -d '{"event":"Hello, World!"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/UsetheHTTPEventCollector"&gt;6.4.1 Docs Page&lt;/A&gt; the URL is a little bit different. Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://xxxxx.cloud.splunk.com/services/collector/event" target="test_blank"&gt;https://xxxxx.cloud.splunk.com/services/collector/event&lt;/A&gt; -H 'Authorization: &amp;lt;Splunk tokenid&amp;gt;' -d '{"event":"Hello, World!"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Maybe you just missed the "&lt;STRONG&gt;/event&lt;/STRONG&gt;" in your original test?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 14:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202383#M40034</guid>
      <dc:creator>pgreer_splunk</dc:creator>
      <dc:date>2016-06-27T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to send logs to Splunk Cloud from command line using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202384#M40035</link>
      <description>&lt;P&gt;i facing issues with curl and I am getting an error "{"text":"Token is required","code":2}"&lt;/P&gt;

&lt;P&gt;Here is my curl:&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="https://localhost:8088/services/collector/event"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization:429AAB25-A7A0-4D40-8D1E-F05E114B069F' -d '{"event":"Hello, World!"}'&lt;/P&gt;

&lt;P&gt;Please advice.&lt;BR /&gt;
If you think I missed the word Splunk in the above uRL. I have tried below example as well. Even that does not work.&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="https://localhost:8088/services/collector/event"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk 429AAB25-A7A0-4D40-8D1E-F05E114B069F' -d '{"event":"Hello, World!"}'&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202384#M40035</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-01-05T22:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to send logs to Splunk Cloud from command line using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202385#M40036</link>
      <description>&lt;P&gt;i facing issues with curl and I am getting an error "{"text":"Token is required","code":2}"&lt;/P&gt;

&lt;P&gt;Here is my curl:&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="https://localhost:8088/services/collector/event"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization:429AAB25-A7A0-4D40-8D1E-F05E114B069F' -d '{"event":"Hello, World!"}'&lt;/P&gt;

&lt;P&gt;Please advice.&lt;BR /&gt;
If you think I missed the word Splunk in the above uRL. I have tried below example as well. Even that does not work.&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="https://localhost:8088/services/collector/event"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk 429AAB25-A7A0-4D40-8D1E-F05E114B069F' -d '{"event":"Hello, World!"}'&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202385#M40036</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-01-05T22:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: How to send logs to Splunk Cloud from command line using curl?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202386#M40037</link>
      <description>&lt;P&gt;@SNaikwade - If you need help with this issue, you may want to submit this as its own separate question. Since you posted this on a question from June 2016, its likely not to receive much activity. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 20:02:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-How-to-send-logs-to-Splunk-Cloud-from/m-p/202386#M40037</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-01-10T20:02:24Z</dc:date>
    </item>
  </channel>
</rss>

