CURL command not working with certain index
Hi, so I have a curl command which I got from the documentation:
curl -u "<accessId>:<accessKey>" -X GET <API Endpoint>
The endpoint I'm specifying has everything it should need, i.e. query parameters and other values etc.
For some reason though it's failing when I include the index portion, like the _index%3DdevPrt.
The error is shown above.
If I don't include the index, or if I make it a string like AND "_index=devPrt" instead of AND _index=devPrt, then technically it works, but obviously gives the wrong results.
I tried other indexes and those seem to work... but this is the only one that's giving errors.
Could this be something on a configuration somewhere for the index? I really don't believe it's caused by errors in the code (I also tried python requests before this, and sumologic-python-sdk, and only used CURL once those failed).
Please let me know, because this is for a customer's environment and I would like to delight them but this issue is preventing me from doing so. I spoke to one person on the customer's team, but I could try finding others to speak to if this is indeed a configuration issue with the index.
-
Hello Abdul,
I have looked into our backend it looks like the Partition which you are using in the query: _index=devPrt. And it's a Frequent tier partition and API queries are not supported in the Frequent tier. That is the reason it's not working with Python SDK.
Please sign in to leave a comment.
Comments
1 comment