Splunk Search

How can I get CLI searches to appear in the Job Manager?

the_wolverine
Champion

It looks like the Job Manager currently does not allow me to track CLI searches. Is there some way I can get a jobid assigned to my CLI searches?

Tags (3)
1 Solution

the_wolverine
Champion

By default, even CLI-initiated searches are assigned a Job id. Unfortunately, these disappear immediately upcome completion of the search run. To make the Job id persist you can add '-detach true' to your search:

[/opt/splunk/bin] ./splunk search "search terms" -maxout 100000 -detach true

Job id: 1277828645.277

View solution in original post

the_wolverine
Champion

By default, even CLI-initiated searches are assigned a Job id. Unfortunately, these disappear immediately upcome completion of the search run. To make the Job id persist you can add '-detach true' to your search:

[/opt/splunk/bin] ./splunk search "search terms" -maxout 100000 -detach true

Job id: 1277828645.277

bwooden
Splunk Employee
Splunk Employee

It showed in my jobs manager on Splunk 4.1 (build 77833)

Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...