Does anyone know how to invoke a macro on Splunk Cloud using Rest API? I am using following command but it always returns the output as "No matching fields exist." .
I am able to run the same macro directly from Splunk Search Page and it does return results.
curl -k -u uswer:"password" -k https://company.splunkcloud.com:8089/services/search/v2/jobs/export -d exec_mode=oneshot -d search="\`lastLoginStatsByUserProd(userid,7)\`" -d output_mode=json