<?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 some curl help in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/some-curl-help/m-p/387421#M69489</link>
    <description>&lt;P&gt;Hello Splunkers, &lt;/P&gt;

&lt;P&gt;Can you please help me run this curl command in Unix when im getting error not seeing any data in splunk &lt;/P&gt;

&lt;P&gt;curl -H “Authorization:b5eee0af-xxx-xxxxc-9972-9abb7b0f9338” -H “Content-Type: application/json” -XPOST “&lt;A href="http://xx.1x1.x.210:8088%E2%80%9D"&gt;http://xx.1x1.x.210:8088”&lt;/A&gt; -d '&lt;BR /&gt;
{&lt;BR /&gt;
“d”: “xxx”,&lt;BR /&gt;
“timestamp”: “Sat Dec 15 13:19:36 2019”,&lt;BR /&gt;
“status”: “up”&lt;BR /&gt;
}'&lt;/P&gt;

&lt;P&gt;the below one working fine i need above one is also same to construct and work.&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="http://localhost:8088/services/collector/event"&gt;http://localhost:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk acxxx04b6-e160-xxd2-a04b-xxbd931f142" -d "{\"time\": 1437522387,\"host\": \"localhost1\",\"source\":&lt;BR /&gt;
\"testapp1\",\"sourcetype\":\"testapp1\",\"index\":\"test\",\"event\": {\"message\": \"Something happened1\",\"severity\": \"WARN\"}}&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 17:07:09 GMT</pubDate>
    <dc:creator>Splunk_citizen</dc:creator>
    <dc:date>2019-02-13T17:07:09Z</dc:date>
    <item>
      <title>some curl help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/some-curl-help/m-p/387421#M69489</link>
      <description>&lt;P&gt;Hello Splunkers, &lt;/P&gt;

&lt;P&gt;Can you please help me run this curl command in Unix when im getting error not seeing any data in splunk &lt;/P&gt;

&lt;P&gt;curl -H “Authorization:b5eee0af-xxx-xxxxc-9972-9abb7b0f9338” -H “Content-Type: application/json” -XPOST “&lt;A href="http://xx.1x1.x.210:8088%E2%80%9D"&gt;http://xx.1x1.x.210:8088”&lt;/A&gt; -d '&lt;BR /&gt;
{&lt;BR /&gt;
“d”: “xxx”,&lt;BR /&gt;
“timestamp”: “Sat Dec 15 13:19:36 2019”,&lt;BR /&gt;
“status”: “up”&lt;BR /&gt;
}'&lt;/P&gt;

&lt;P&gt;the below one working fine i need above one is also same to construct and work.&lt;/P&gt;

&lt;P&gt;curl -k &lt;A href="http://localhost:8088/services/collector/event"&gt;http://localhost:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk acxxx04b6-e160-xxd2-a04b-xxbd931f142" -d "{\"time\": 1437522387,\"host\": \"localhost1\",\"source\":&lt;BR /&gt;
\"testapp1\",\"sourcetype\":\"testapp1\",\"index\":\"test\",\"event\": {\"message\": \"Something happened1\",\"severity\": \"WARN\"}}&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 17:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/some-curl-help/m-p/387421#M69489</guid>
      <dc:creator>Splunk_citizen</dc:creator>
      <dc:date>2019-02-13T17:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: some curl help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/some-curl-help/m-p/387422#M69490</link>
      <description>&lt;P&gt;The URLs don't match.  You can try this command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -H “Authorization:b5eee0af-xxx-xxxxc-9972-9abb7b0f9338” -H “Content-Type: application/json” -XPOST “http://xx.1x1.x.210:8088/services/collector/event” -d '
{
“d”: “xxx”,
“timestamp”: “Sat Dec 15 13:19:36 2019”,
“status”: “up”
}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But then you'll probably find the data structures don't match.  The HTTP Event Collector expects events to arrive in a specific format.  See &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector#Send_data_to_HTTP_Event_Collector&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/some-curl-help/m-p/387422#M69490</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-13T18:44:48Z</dc:date>
    </item>
  </channel>
</rss>

