Skip to content

Instantly share code, notes, and snippets.

@barkerd427
Created December 11, 2014 02:56
Show Gist options
  • Save barkerd427/1241bb00d2b6beef6413 to your computer and use it in GitHub Desktop.
Save barkerd427/1241bb00d2b6beef6413 to your computer and use it in GitHub Desktop.
Run splunk command that failed in chef-client
root@kc7aeonmap001:/root
20:31:05 # /opt/splunkforwarder/bin/splunk help commands --accept-license --answer-yes --no-prompt
This appears to be your first time running this version of Splunk.
This page shows you the syntax and summary of the Splunk CLI commands. A command is an action
that you can perform on an object. Some commands don't require an object or parameters. Some
commands have a default parameter that can be specified by its value alone.
Syntax:
./splunk [command] [object] [-parameter <value>]...
Supported commands and objects:
[command] [objects]
add [exec|forward-server|index|licenser-pools|licenses|master|monitor|oneshot|
saved-search|search-server|tcp|udp|user]
anonymize source
apply cluster-bundle
clean [all|eventdata|globaldata|inputdata|userdata]
create app
createssl NONE
diag NONE
disable [app|boot-start|deploy-client|deploy-server|
dist-search|index|listen|local-index|maintenance-mode|webserver|web-ssl]
display [app|boot-start|deploy-client|deploy-server|
dist-search|index|jobs|listen|local-index]
edit [app|cluster-config|exec|index|licenser-localslave|licenses|
licenser-groups|master|monitor|saved-search|search-server|tcp|udp|user]
enable [app|boot-start|deploy-client|deploy-server|dist-search|
index|listen|local-index|maintenance-mode|webserver|web-ssl]
export [eventdata|userdata]
import userdata
install app
find logs
help NONE
list [cluster-buckets|cluster-config|cluster-generation|cluster-peers|deploy-clients|excess-buckets|
exec|forward-server|index|jobs|licenser-groups|licenser-localslave|licenser-messages|
licenser-pools|licenser-slaves|licenser-stacks|licenses|master|master-info|monitor|peer-buckets|peer-info|
saved-search|search-server|tcp|udp|user]
login,logout NONE
offline NONE
package app
refresh deploy-clients
reload [ad|auth|deploy-server|index|listen|monitor|registry|script|tcp|udp|perfmon|wmi]
remove [app|excess-buckets|exec|forward-server|index|jobs|licenser-pools|licenses|master|monitor|
saved-search|search-server|tcp|udp|user]
rolling-restart cluster-peers
rtsearch [app|batch|detach|earliest_time|header|id|max_time|maxout|output|preview|timeout|
uri|wrap]
search [app|batch|detach|earliest_time|header|id|index_earliest|index_latest|latest_time|
max_time|maxout|output|preview|timeout|uri|wrap]
set [datastore-dir|deploy-poll|default-hostname|default-index|
minfreemb|servername|server-type|splunkd-port|web-port]
show [config|datastore-dir|deploy-poll|default-hostname|default-index|
jobs|minfreemb|servername|splunkd-port|web-port]
spool NONE
start,stop,restart [splunkd|splunkweb]
status [splunkd|splunkweb]
Objects:
None
Required Parameters:
None
Optional Parameters:
None
Examples:
None
Type "help [command]" to get help with parameters for a specific command.
Complete documentation is available online at: http://docs.splunk.com/Documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment