selinux and splunk

Tips & Tricks Splunk

If you’ve enabled selinux for whatever reason, you need to either disable it or configure it to allow splunk to run.

To configure selinux to allow splunk to run, you need to run the chcon command on the splunk lib directory. Here is what you type :

chcon -c -v -R -u system_u -r object_r -t lib_t $SPLUNK_HOME/lib 2>&1 > /dev/null
You can also disable the check when splunk starts by adding this line to the $SPLUNK_HOME/bin/setSplunkEnv script

export SPLUNK_IGNORE_SELINUX=1

Related Articles

Syslog-ng and HEC: Scalable Aggregated Data Collection in Splunk
Tips & Tricks
9 Minute Read

Syslog-ng and HEC: Scalable Aggregated Data Collection in Splunk

Best practices for scalable aggregated data collection
Everybody Splunk with the Splunk SDK
Tips & Tricks
1 Minute Read

Everybody Splunk with the Splunk SDK

Splunk Tools for Fun and Profit: A Hacker's Guide to Casino Blackjack
Tips & Tricks
8 Minute Read

Splunk Tools for Fun and Profit: A Hacker's Guide to Casino Blackjack

Using Splunk to analyze the game of casino blackjack? You bet (no pun intended). Get a closer look as Splunker David Holiday shows you how.