<?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 collector , pass the auth token within the URL in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459476#M79352</link>
    <description>&lt;P&gt;The answer for this was easier than I though. You can send a post message with basic auth, see below.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunk:@hec.example.com:8088/services/collector/event"&gt;https://splunk:@hec.example.com:8088/services/collector/event&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2018 00:40:37 GMT</pubDate>
    <dc:creator>rsokolova</dc:creator>
    <dc:date>2018-11-08T00:40:37Z</dc:date>
    <item>
      <title>HTTP collector , pass the auth token within the URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459475#M79351</link>
      <description>&lt;P&gt;Thanks in advance. &lt;/P&gt;

&lt;P&gt;The idea is to receive JSON message from Twilio with the SMS response. But in the Twilio's settings I cannot pass a header value for the AUTH token, which is making the communication to fail. Is there any other way I can achieve this ?&lt;/P&gt;

&lt;P&gt;Using curl I can post a message successfully to the HEC (HTTP collector). &lt;BR /&gt;
curl -k  &lt;A href="https://hec.example.com:8088/services/collector/event"&gt;https://hec.example.com:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk B5A79AAD-D822-46CC-80D1-819F80D7BFB0" -d '{"event": "hello world"}'&lt;BR /&gt;
{"text": "Success", "code": 0}&lt;/P&gt;

&lt;P&gt;Expecting to have something like if it even exists. &lt;BR /&gt;
&lt;A href="https://hec.example.com:8088/services/collector/event?AUTH=B5A79AAD-D822-46CC-80D1-819F80D7BFB0"&gt;https://hec.example.com:8088/services/collector/event?AUTH=B5A79AAD-D822-46CC-80D1-819F80D7BFB0&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459475#M79351</guid>
      <dc:creator>rsokolova</dc:creator>
      <dc:date>2018-11-05T20:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP collector , pass the auth token within the URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459476#M79352</link>
      <description>&lt;P&gt;The answer for this was easier than I though. You can send a post message with basic auth, see below.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunk:@hec.example.com:8088/services/collector/event"&gt;https://splunk:@hec.example.com:8088/services/collector/event&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 00:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459476#M79352</guid>
      <dc:creator>rsokolova</dc:creator>
      <dc:date>2018-11-08T00:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP collector , pass the auth token within the URL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459477#M79353</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I'm wondering if you can post a little more detail about this, I am needing to send a json payload to Splunk from a mobile app, and the devs want a 1 line API/URL with authentication to send the event, did you get this sort of thing working.&lt;BR /&gt;
I see from your original question that you were sending a test event with basic auth, I need to do this with a Splunk HEC token and can't seem to get the syntax right, are you able to help with what the syntax might look like?&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;BR /&gt;
Peter&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 23:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-collector-pass-the-auth-token-within-the-URL/m-p/459477#M79353</guid>
      <dc:creator>proylea</dc:creator>
      <dc:date>2019-07-31T23:30:34Z</dc:date>
    </item>
  </channel>
</rss>

