Documentation: 3.3.1
Print Version Contents
This page last updated: 03/28/08 02:03pm

Configure SELinux

If you have SELinux active on your system, you must add Splunk to the list of authenticated applications that can run in your SELinux environment.

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 must also disable the check when Splunk starts by adding this line
to $SPLUNK_HOME/etc/splunk-launch.conf.

SPLUNK_IGNORE_SELINUX=1

Comments

  1. [root@serverc]# chcon -c -v -R -u system_u -r object_r -t lib_t $SPLUNK_HOME/lib 2>&1 > /dev/null
    chcon: can't apply partial context to unlabeled file /opt/splunk/lib

  2. thank you, meeas. i've updated the topic.

  3. Don't put "export" in front of "SPLUNK_IGNORE_SELINUX=1" in splunk-launch.conf. Just set the variable to "1".

    This was an artifact from the previous 3.1.5 documentation that they missed.

Log in to comment.