<?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: Why am I getting error &amp;quot;Invalid authorization&amp;quot; with my WEBHOOK_URL? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231412#M45071</link>
    <description>&lt;P&gt;Looking at the example at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Data/UsetheHTTPEventCollector"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Data/UsetheHTTPEventCollector&lt;/A&gt;, the "Authorization" header includes the word "Splunk" whereas your code does not.  Try that.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2016 13:33:54 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2016-03-04T13:33:54Z</dc:date>
    <item>
      <title>HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231409#M45068</link>
      <description>&lt;P&gt;Can someone tell me why this is failing with Invalid authorization? I think that the endpoint is as documented. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WEBHOOK_URL = 'https://localhost:8088/services/collector/event'
#headers = {'Content-Type': 'application/json'}
headers={'Authorization': 'A1DD6F1E-0F63-40CF-9A15-C82B36AFD89F', 'Content-Type': 'application/json'}


message = { "index":"main", "sourcetype":"xqe_metric", "event":"Testing"}

print WEBHOOK_URL, headers, message

connection = httplib.HTTPSConnection('localhost:8088')
connection.request('POST', WEBHOOK_URL, json.dumps(message), headers)

response = connection.getresponse()
print response.read().decode(), '/n'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Response&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module 'time' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so'&amp;gt;   Failed="no"
&lt;A href="http://localhost:8088/services/collector/event" target="test_blank"&gt;http://localhost:8088/services/collector/event&lt;/A&gt; {'Content-Type': 'application/json', 'Authorization': 'A1DD6F1E-0F63-40CF-9A15-C82B36AFD89F'} {'index': 'main', 'sourcetype': 'xqe_metric', 'event': 'Testing'}
{"text":"Invalid authorization","code":3} /n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1105i4FD2B6252A8979D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231409#M45068</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2016-03-03T19:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231410#M45069</link>
      <description>&lt;P&gt;The WEBHOOK_URL variable has unbalanced quotes and parens in it.  If it's a not a typo in the question then it could explain the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231410#M45069</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-03T20:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231411#M45070</link>
      <description>&lt;P&gt;Thanks, I updated the code and response it had a typo.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 21:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231411#M45070</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2016-03-03T21:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231412#M45071</link>
      <description>&lt;P&gt;Looking at the example at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Data/UsetheHTTPEventCollector"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Data/UsetheHTTPEventCollector&lt;/A&gt;, the "Authorization" header includes the word "Splunk" whereas your code does not.  Try that.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 13:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231412#M45071</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-04T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231413#M45072</link>
      <description>&lt;P&gt;Rich is correct!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 01:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231413#M45072</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-03-05T01:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231414#M45073</link>
      <description>&lt;P&gt;I see you are using HTTPS. Just as a side note, as you sending to your local instance, the SSL cert is probably not valid in which case the request will be rejected unless you configure you client to ignore cert validation.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 01:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231414#M45073</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-03-05T01:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231415#M45074</link>
      <description>&lt;P&gt;Thanks. I saw the problem thanks to your observation.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 13:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231415#M45074</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2016-03-07T13:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231416#M45075</link>
      <description>&lt;P&gt;If your problem is solved please accept the answer.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231416#M45075</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-03-11T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Event Collector: Why am I getting error "Invalid authorization" with my WEBHOOK_URL?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231417#M45076</link>
      <description>&lt;P&gt;Hi Guys, &lt;/P&gt;

&lt;P&gt;I have a similar problem - I'm using a HTTP event collector and installed an iApp for F5 load balancers. &lt;BR /&gt;
I can see the F5 sending keys as follows from a packet capture:&lt;/P&gt;

&lt;P&gt;Member Key: time&lt;BR /&gt;
Member Key: host&lt;BR /&gt;
Member Key: source&lt;BR /&gt;
Member Key: sourcetype&lt;BR /&gt;
Member Key: event&lt;/P&gt;

&lt;P&gt;I can see the Splunk Server responding like this:&lt;/P&gt;

&lt;P&gt;Member Key: text&lt;BR /&gt;
       String Value: Invalid authorization&lt;BR /&gt;
       Key: text&lt;/P&gt;

&lt;P&gt;Member Key: code&lt;BR /&gt;
       Number Value: 3&lt;BR /&gt;
       Key: code&lt;/P&gt;

&lt;P&gt;Where in Splunk do I configure the above Member Key which is causing an invalid authorization?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HTTP-Event-Collector-Why-am-I-getting-error-quot-Invalid/m-p/231417#M45076</guid>
      <dc:creator>shamscw</dc:creator>
      <dc:date>2017-08-30T16:21:21Z</dc:date>
    </item>
  </channel>
</rss>

