Skip to content

Instantly share code, notes, and snippets.

View codingWithJimmy's full-sized avatar

Jimmy Maple codingWithJimmy

  • Splunk
  • DMV Area
View GitHub Profile
@codingWithJimmy
codingWithJimmy / thp.sh
Last active January 11, 2025 23:17
Script used to disable THP and configure ulimits for Splunk Enterprise as recommended by Splunk
#!/bin/bash
## Script developed by Jimmy Maple - Splunk Professional Services
## This script was designed to allow for quick deployment of THP, ulimit
## and Splunk user accounts for Splunk infrastructure. It was developed
## using RHEL 7 as the Splunk host. There may be issues using other
## Linux OS for this and should be altered and tested if necessary
## particularly using the find command for the THP changes and any
## additional commands for user and group creation. Confirm the
## commands before proceeding. There is some flexibility when it comes
@codingWithJimmy
codingWithJimmy / splunk_aliases.txt
Created February 12, 2019 19:24
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'