Hi can you provide curl example and error example?
@burwell Splunk query and error ar below is the error
Error:
{"error":"400 Bad Request: The browser (or proxy) sent a request that this server could not understand."}
Query:
| eval bodyfield="{\"group\":\"".group_name."\",\"caller_id\":\"".caller_id."\"}"
| eval uriPut="https://endpoint/service"
| eval header="{\"Content-Type\":\"application/json\",\"token\":\"mytoken\"}"
| curl method=post urifield=uriPut headerfield=header datafield=bodyfield
That is not a curl query.
Hi
You are probably using this SplunkBase app https://splunkbase.splunk.com/app/4172 ?
It seems not to be supported by current splunk version without modifications.
CURL command
@isoutamo We are using webtools app on our Splunk instance. Incompatibility with python version seems interesting. Could this app also have a similar issue ?
https://splunkbase.splunk.com/app/4146
We are currently using v2.0.2 of webtools.
Basically it is supported even version 2.0.2. Upgrade readiness app said that it has outdated SDK version. I propose that you update it to the latest version (check what it need for updating). That version should work correctly with Splunk 9.x.x (checked in 9.0.4.1)
If by "Query" you mean the SPL query you send via curl, it has to cause error because the last pipe begins with "curl", and "curl" is not a valid SPL command. (See Search Commands.) Not in 9.x. Not in any prior versions.
Forget about curl. If you enter the query into a search window, it will give an error. Are you sure there was any success with the same query before upgrade?
We have installed webtools to out Splunk instance to use "curl" command. It was working before the upgrade.
Below is the link to the app.
https://splunkbase.splunk.com/app/4146