splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

Endpoint instance to HEC fails with 404 not found #345

Closed dtrodger closed 2 years ago

dtrodger commented 4 years ago

Calls to this endpoint return a 404. The SDK appends a '/' to the end of any uri. So, /services/collector/event is found, /services/collector/event/ is not.

event_collector_endpoint = splunklib.client.Endpoint(splunk_service, "/services/collector/event")

Subclassing client.Endpoints and overriding init like below works.

Screen Shot 2020-09-13 at 7 58 03 PM
ashah-splunk commented 2 years ago

Hi @dtrodger , We have fixed the issue, and the changes will be available in the next release.

ashah-splunk commented 2 years ago

@dtrodger please refer the latest python-sdk release 1.6.19 and let us know if the issue still exists.