Getting Data In
Highlighted

Is there a way to return a search.log for a recent search job using the REST api?

Path Finder

I'd like to monitor for certain text in a search.log for recent jobs.

Is there a way to return a search.log for a recent search job using the REST api?

0 Karma
Highlighted

Re: Is there a way to return a search.log for a recent search job using the REST api?

SplunkTrust
SplunkTrust

Hi @bschaap,

If you know the Job ID then you can use below REST API

curl -k -u admin:pass https://<server>:<mgmt_port>/services/search/jobs/<job_id>/search.log

View solution in original post

Highlighted

Re: Is there a way to return a search.log for a recent search job using the REST api?

Path Finder

Thank you that works

0 Karma
Highlighted

Re: Is there a way to return a search.log for a recent search job using the REST api?

SplunkTrust
SplunkTrust

Great. I have converted my comment to answer so you can accept/upvote it.

0 Karma