Hi,
I am trying to perform search using rest api from R language. This is the curl I am using which is available in splunk doc.
curl -u admin:changeme -k https://localhost:8089/services/search/jobs -d search="search *"
I am using httr GET method in R. Below is the sample code. When I use the curl I get a sid in response. But the same process when I run from R it returns all the search details. Not able to figure what I am missing out in below code.
response <- GET(splunk_server,
path=search_job_export_endpoint,
config(ssl_verifyhost=FALSE, ssl_verifypeer=0),
authenticate(username, password),
query=list(search=urlencode(search_terms)),
verbose())
What does -d in curl exactly do ?
... View more