splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Endpoint instance to HEC fails with 404 not found

Open dtrodger opened this issue 6 years ago • 2 comments

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

dtrodger avatar Sep 13 '20 21:09 dtrodger

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

ashah-splunk avatar Dec 14 '21 14:12 ashah-splunk

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

ashah-splunk avatar Apr 05 '22 12:04 ashah-splunk