Splunk Search

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

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

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

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

Splunk Employee
Splunk Employee

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

Don’t Miss Global Splunk
User Groups Week!

Free LIVE events worldwide 2/8-2/12
Connect, learn, and collect rad prizes
and swag!