Closed seiimonn closed 1 year ago
Hi @seiimonn we are looking into the issue and will get back to you soon.
Hi @seiimonn , support for accelerated_fields
is added in SDK and it will be available in the next release.
@seiimonn request you to pull the latest SDK release v1.7.3 with the added support and let us know in case of any issue. Thanks!
Describe the bug When updating the index of a collection the following error is given:
splunklib.binding.HTTPError: HTTP 400 Bad Request -- Argument "index.ho1" is not supported by this handler.
To Reproduce Steps to reproduce the behavior:
Expected behavior Update of accelerated fields for collection.
Logs or Screenshots
Splunk (please complete the following information):
SDK (please complete the following information):
Additional context I guess that the issue is based on index vs accelerations. An acceleration in a collection is an index on the underlying MongoDB. Patching the line https://github.com/splunk/splunk-sdk-python/blob/master/splunklib/client.py#L3724 to
kwargs['accelerated_fields.' + name] = value if isinstance(value, six.string_types) else json.dumps(value)
fixes the issue.