I receive the following error while trying to execute a simple "makeresults" command by using REST API call:
Used endpoint:
https://localhost:8089/servicesNS/nobody/myapp/search/jobs
Search example:
"| makeresults | eval name=\"denis\""
Error message:
"Error in 'makeresults' command: This command must be the first command of a search."
"search": "search | makeresults | eval nombre=\"denis\""
I see that the API call changes my search adding a "search" word before the search itself. How can I get riddle of that?
Hi
This should work
[soutamo@vega] ~>
(0) $ curl -ku $PASS https://localhost:8089/servicesNS/-/search/search/jobs -d search=" |makeresults|eval name=\"denis\""
<?xml version="1.0" encoding="UTF-8"?>
<response>
<sid>1688721961.24</sid>
</response>
[soutamo@vega] ~>
(0) $ export SID=1688721961.24 && curl -sku $PASS https://localhost:8089/services/search/jobs/$SID/results?output_mode=json|jq '.results'
[
{
"_time": "2023-07-07T12:26:02.000+03:00",
"name": "denis"
}
]
[soutamo@vega] ~>
(0) $
r. Ismo