<?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: Is there an error in the documentation?  My tests indicate the document is not correct when using curl. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613788#M106224</link>
    <description>&lt;P&gt;Submit this message as feedback on the relevant Docs page.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 15:11:21 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-09-20T15:11:21Z</dc:date>
    <item>
      <title>Is there an error in the documentation?  My tests indicate the document is not correct when using curl.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613777#M106220</link>
      <description>&lt;P&gt;According to my tests the Authorization header should not have a space between the colon and splunk keyword.&amp;nbsp; It should be "Authorization:Splunk ###-####..." and not "Authorization:&amp;nbsp; Splunk ###-####..."&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/FormateventsforHTTPEventCollector" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/FormateventsforHTTPEventCollector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In other words this works:&lt;/P&gt;&lt;PRE&gt;curl -k https://prd-p.splunkcloud.com:8088/services/collector -H "Authorization:Splunk ###-######" -d "{\"sourcetype\":\"_json\",\"index\": \"job1\",\"event\": {\"a\": \"value1\", \"b\": [\"value1\", \"value1\"]}}"&lt;/PRE&gt;&lt;P&gt;Whereas this does not work:&lt;/P&gt;&lt;PRE&gt;curl -k https://prd-p.splunkcloud.com:8088/services/collector -H "Authorization: Splunk ###-######-b680-72c7bd33f9bb" -d "{\"sourcetype\":\"_json\",\"index\": \"job1\",\"event\": {\"a\": \"value1\", \"b\": [\"value1\", \"value1\"]}}"&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="markjones_0-1663682704498.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21558i5E057FCACB287AAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="markjones_0-1663682704498.png" alt="markjones_0-1663682704498.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613777#M106220</guid>
      <dc:creator>mark-jones</dc:creator>
      <dc:date>2022-09-20T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an error in the documentation?  My tests indicate the document is not correct when using curl.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613788#M106224</link>
      <description>&lt;P&gt;Submit this message as feedback on the relevant Docs page.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613788#M106224</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-20T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an error in the documentation?  My tests indicate the document is not correct when using curl.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613796#M106226</link>
      <description>&lt;P&gt;Done.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613796#M106226</guid>
      <dc:creator>mark-jones</dc:creator>
      <dc:date>2022-09-20T15:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an error in the documentation?  My tests indicate the document is not correct when using curl.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613895#M106248</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-H "Authorization: Splunk eae66351-aaaa-1111-2222-2787781f501f"&lt;/LI-CODE&gt;&lt;P&gt;works as documentation said. Actually you can use it with or without that space between : and Splunk.&lt;/P&gt;&lt;P&gt;What I have earlier seen, is that in some OS (like windows) and/or some shell configurations will generate some confusion with sending event with curl to HEC. Especially when you are surrounding event with " instead of '. In this first case you must do some escape for " on json field names and values and there are situation when this can leads to unwanted situation.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 08:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-error-in-the-documentation-My-tests-indicate-the/m-p/613895#M106248</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-09-21T08:52:41Z</dc:date>
    </item>
  </channel>
</rss>

