Skip to content

Instantly share code, notes, and snippets.

@codingWithJimmy
Created February 12, 2019 19:24
Show Gist options
  • Select an option

  • Save codingWithJimmy/61856bc188a6fd03c2b48287f25d95a5 to your computer and use it in GitHub Desktop.

Select an option

Save codingWithJimmy/61856bc188a6fd03c2b48287f25d95a5 to your computer and use it in GitHub Desktop.
Useful aliases when dealing with Splunk installations on the command line
# Core Splunk Commands
alias splunk='/opt/splunk/bin/splunk'
alias apps='cd /opt/splunk/etc/apps'
alias splunk_log='tail -f /opt/splunk/var/log/splunk/splunkd.log'
alias btool='/opt/splunk/bin/splunk btool'
# Deployment server commands
alias deploy_apps='cd /opt/splunk/etc/deployment-apps'
alias deploy_reload='/opt/splunk/bin/splunk reload deploy-server'
# Indexer cluster commands
alias master_apps='cd /opt/splunk/etc/master-apps'
alias validate_cluster_bundle='/opt/splunk/bin/splunk validate cluster-bundle'
alias apply_cluster_bundle='/opt/splunk/bin/splunk apply cluster-bundle'
# Search head cluster commands
alias shcluster_apps='cd /opt/splunk/etc/shcluster/apps'
alias apply_shcluster_bundle='/opt/splunk/bin/splunk apply shcluster-bundle --answer-yes -target'
alias shcluster_restart='/opt/splunk/bin/splunk splunk rolling-restart shcluster-members'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment