All Apps and Add-ons

HomeAssistant app for Splunk: How to resolve "Error saving event to Splunk: ('Connection aborted.', BadStatusLine("''",))"?

dominiquevocat
SplunkTrust
SplunkTrust

I configured the HTTP Event Collector and tested it successfully with wget/curl

HomeAssistant app for Splunk complains however and i do not get any events from HomeAssistant as per the below snippet from the log.

16-11-25 22:37:49 homeassistant.components.splunk: Error saving event to Splunk: ('Connection aborted.', BadStatusLine("''",))
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 391, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 387, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.4/http/client.py", line 1172, in getresponse
    response.begin()
  File "/usr/lib/python3.4/http/client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.4/http/client.py", line 321, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: ''
0 Karma

averyml
Explorer

This is more likely an issue with the Splunk component of Home Assistant, or its configuration, not the Splunk App itself. Can you open up an issue on the github project , including all of the requested information (log, relevant config, etc.) as well as the working curl command, so that I can take a look at it?

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...