splunk-launch.conf - Splunk Documentation (original) (raw)

This documentation does not apply to the most recent version of Splunk® Enterprise. For documentation on the most recent version, go to the latest release.

The following are the spec and example files for splunk-launch.conf.

splunk-launch.conf.spec

Version 7.2.0

splunk-launch.conf contains values used at startup time, by the splunk

command and by windows services.

Note: this conf file is different from most splunk conf files. There is

only one in the whole system, located at

$SPLUNK_HOME/etc/splunk-launch.conf; further, there are no stanzas,

explicit or implicit. Finally, any splunk-launch.conf files in

etc/apps/... or etc/users/... will be ignored.

Lines beginning with a # are considered comments and are ignored.

#*******

Environment variables

Primarily, this file simply sets environment variables to be used by

Splunk programs.

These environment variables are the same type of system environment

variables that can be set, on unix, using:

bourne shells:

$ export ENV_VAR=value

c-shells:

% setenv ENV_VAR value

or at a windows command prompt:

C:> SET ENV_VAR=value

#*******

=

#*******

Specific Splunk environment settings

These settings are primarily treated as environment variables, though some

have some additional logic (defaulting).

There is no need to explicitly set any of these values in typical

environments.

#*******

SPLUNK_HOME=

SPLUNK_DB=

SPLUNK_BINDIP=

SPLUNK_IGNORE_SELINUX=true

SPLUNK_OS_USER = |

#*******

Service/server names.

These settings are considered internal, and altering them is not

supported.

Under Windows, they influence the expected name of the service;

on UNIX they influence the reported name of the appropriate

server or daemon process.

On Linux distributions that run systemd, this is the name of the

unit file for the service that Splunk Enterprise runs as.

For example, if you set 'SPLUNK_SERVER_NAME' to 'splunk'

then the corresponding unit file should be named 'splunk.service'.

If you want to run multiple instances of Splunk as services under

Windows, you will need to change the names below for 2nd, 3rd, ...,

instances. That is because the 1st instance has taken up service names

'Splunkd' and 'Splunkweb', and you may not have multiple services with

same name.

#*******

SPLUNK_SERVER_NAME=

SPLUNK_WEB_NAME=

#*******

File system check enable/disable

CAUTION !!! CAUTION !!! CAUTION !!! CAUTION !!! CAUTION !!! CAUTION !!!

USE OF THIS ADVANCED SETTING IS NOT SUPPORTED. IRREVOCABLE DATA LOSS

CAN OCCUR. YOU USE THE SETTING SOLELY AT YOUR OWN RISK.

CAUTION !!! CAUTION !!! CAUTION !!! CAUTION !!! CAUTION !!! CAUTION !!!

When Splunk software encounters a file system that it does not recognize,

it runs a utility called 'locktest' to confirm that it can write to the

file system correctly. If 'locktest' fails for any reason, splunkd

cannot start.

The following setting lets you temporarily bypass the 'locktest'

check (for example, when a software vendor introduces a new default

file system on a popular operating system.) When it is active, splunkd

starts regardless of its ability to interact with the file system.

Use this setting if and only if:

* You are a skilled Splunk administrator and know what you are doing.

* You use Splunk software in a development environment.

* You want to recover from a situation where the default

filesystem has been changed outside of your control (such as

during an operating system upgrade.)

* You want to recover from a situation where a Splunk bug

has invalidated a previously functional file system after an upgrade.

* You want to evaluate the performance of a file system for which

Splunk has not yet offered support.

* You have been given explicit instruction from Splunk Support to use

the setting to solve a problem where Splunk software does not start

because of a failed file system check.

* You understand and accept all of the risks of using the setting,

up to and including LOSING ALL YOUR DATA WITH NO CHANCE OF RECOVERY

If none of these scenarios applies to you, then DO NOT USE THE SETTING.

REPEAT:

USE OF THIS ADVANCED SETTING IS NOT SUPPORTED. IRREVOCABLE DATA LOSS

CAN OCCUR. YOU USE THIS SETTING SOLELY AT YOUR OWN RISK. BY USING THE

SETTING, YOU ARE ACTIVELY BYPASSING FILE SYSTEM CHECKS THAT ARE

DESIGNED TO CONFIRM THAT SPLUNK SOFTWARE CAN WORK ON YOUR MACHINE

FILE SYSTEM. DO NOT USE THE SETTING AS A LONG-TERM SOLUTION TO A FILE

SYSTEM PROBLEM. WHEN USING THE SETTING UNDER GUIDANCE OF SPLUNK

SUPPORT, REPORT ANY PROBLEMS YOU ENCOUNTER WITH INDEXING OR

SEARCH IMMEDIATELY.

#*******

OPTIMISTIC_ABOUT_FILE_LOCKING = [0|1]

splunk-launch.conf.example

No example