<?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: HTTPS collector not receiving items from scrape? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354508#M5667</link>
    <description>&lt;P&gt;btw, it doesn't work with https neither.  '&lt;A href="https://45.55.161.5:8088/services/collector/event"&gt;https://45.55.161.5:8088/services/collector/event&lt;/A&gt;'&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 07:33:21 GMT</pubDate>
    <dc:creator>kristjobnext</dc:creator>
    <dc:date>2017-09-22T07:33:21Z</dc:date>
    <item>
      <title>HTTPS collector not receiving items from scrape?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354507#M5666</link>
      <description>&lt;P&gt;Using Splunk enterprise. &lt;A href="https://45.55.161.5:8000/en-US/app/launcher/home"&gt;https://45.55.161.5:8000/en-US/app/launcher/home&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;A HTTPS event collector is listening on 8088 with token DB84F19F-B2F1-4B89-BB38-643DFB641B34&lt;/P&gt;

&lt;P&gt;From source, this code is trying to send JSON to Spunk. But Splunk does not receive. Can anyone help to get this right? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;import requests&lt;BR /&gt;
import json&lt;/P&gt;

&lt;P&gt;url = '&lt;A href="http://45.55.161.5:8088/services/collector/event"&gt;http://45.55.161.5:8088/services/collector/event&lt;/A&gt;'&lt;BR /&gt;
payload = {&lt;BR /&gt;
"Test": "Splunk ",&lt;BR /&gt;
}&lt;BR /&gt;
headers = {&lt;BR /&gt;
"Authorization": "Splunk DB84F19F-B2F1-4B89-BB38-643DFB641B34",&lt;BR /&gt;
}&lt;BR /&gt;
r = requests.post(url, data=json.dumps(payload), headers=headers)&lt;BR /&gt;
print(r.content)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354507#M5666</guid>
      <dc:creator>kristjobnext</dc:creator>
      <dc:date>2017-09-22T07:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS collector not receiving items from scrape?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354508#M5667</link>
      <description>&lt;P&gt;btw, it doesn't work with https neither.  '&lt;A href="https://45.55.161.5:8088/services/collector/event"&gt;https://45.55.161.5:8088/services/collector/event&lt;/A&gt;'&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:33:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354508#M5667</guid>
      <dc:creator>kristjobnext</dc:creator>
      <dc:date>2017-09-22T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS collector not receiving items from scrape?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354509#M5668</link>
      <description>&lt;P&gt;You could just use a premade HEC python class.&lt;BR /&gt;
&lt;A href="https://github.com/georgestarcher/Splunk-Class-httpevent"&gt;https://github.com/georgestarcher/Splunk-Class-httpevent&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But make sure your token is valid in the permissions for the destination index you are wanting to send to.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 17:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354509#M5668</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2017-09-22T17:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS collector not receiving items from scrape?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354510#M5669</link>
      <description>&lt;P&gt;Thanks Starcher. I will check this out and let you know. &lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 06:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HTTPS-collector-not-receiving-items-from-scrape/m-p/354510#M5669</guid>
      <dc:creator>kristjobnext</dc:creator>
      <dc:date>2017-09-27T06:29:06Z</dc:date>
    </item>
  </channel>
</rss>

