Getting Data In

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

bschaap
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
1 Solution

harsmarvania57
Ultra Champion

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

harsmarvania57
Ultra Champion

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

bschaap
Path Finder

Thank you that works

0 Karma

harsmarvania57
Ultra Champion

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

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...