app.conf - Splunk Documentation (original) (raw)

The following are the spec and example files for app.conf.

app.conf.spec

Version 9.4.2

OVERVIEW

This file maintains the state of a given app in the Splunk platform. It can

also be used to customize certain aspects of an app.

An app.conf file can exist within each app on the Splunk platform.

You must restart the Splunk platform to reload manual changes to app.conf.

To learn more about configuration files (including precedence) please see the

documentation located at

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles

email = company =

[id]

group = name = version =

[launcher]

Global Settings:

remote_tab =

Per-application Settings:

version =

description =

author =

Your app can include an icon which appears next to your app in Launcher

and on Splunkbase. You can also include a screenshot, which shows up on

Splunkbase when the user views information about your app before downloading it.

If you include an icon file, the file name must end with "Icon" before the

file extension and the "I" must be capitalized. For example, "mynewIcon.png".

Screenshots are optional.

There is no setting in app.conf for screenshot or icon images.

Splunk Web places files you upload with your app into

the $SPLUNK_HOME/etc/apps//static/ directory.

These images do not appear in your app.

Move or place icon images in the $SPLUNK_HOME/etc/apps//static/ directory.

Move or place screenshot images in the $SPLUNK_HOME/etc/apps//static/ directory.

Launcher and Splunkbase automatically detect the images in those locations.

For example:

/static/appIcon.png (the capital "I" is required!)

/static/screenshot.png

An icon image must be a 36px by 36px PNG file.

An app screenshot must be a 623px by 350px PNG file.

[package]

id =

check_for_updates =

show_upgrade_notification =

[install]

state = disabled | enabled

state_change_requires_restart =

is_configured =

build =

allows_disable =

install_source_checksum =

install_source_local_checksum =

python.version = {default|python|python2|python3|python3.7|python3.9|latest}

[triggers]

Conf-level reload triggers

reload. = [ simple | never | rest_endpoints | access_endpoints | http_get | http_post ]

Stanza-level reload triggers

reload.. = [ simple | never | access_endpoints | http_get | http_post ]

[shclustering]

deployer_lookups_push_mode = preserve_lookups | always_preserve | always_overwrite | overwrite_on_change

deployer_push_mode = full | merge_to_default | local_only | default_only

Set UI-specific settings for this app

[ui]

is_visible =

show_in_nav =

is_manageable =

label =

docs_section_override =

attribution_link =

setup_view =

supported_themes =

[credentials_settings]

verify_script =

python.version = {default|python|python2|python3|python3.7|python3.9|latest}

[credential::]

password =

[diag]

extension_script =

data_limit = [b|kb|MB|GB]

Other diag settings

default_gather_lookups = [, ...]

app.conf.example

Version 9.4.2

The following are example app.conf configurations. Configure properties for

your custom application.

There is NO DEFAULT app.conf.

To use one or more of these configurations, copy the configuration block into

app.conf in $SPLUNK_HOME/etc/system/local/. You must restart Splunk to

enable configurations.

To learn more about configuration files (including precedence) please see the

documentation located at

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Aboutconfigurationfiles

[launcher] author= description= version=

[triggers] ########## Conf-level reload triggers ##########

Do not force a restart of Splunk Enterprise for state changes of MyApp

Do not run special code to tell MyApp to reload myconffile.conf

Apps with custom config files usually pick this option:

reload.myconffile = simple

Do not force a restart of Splunk Enterprise for state changes of MyApp.

Splunk Enterprise calls the /admin/myendpoint/_reload method in my custom

EAI handler.

Use this advanced option only if MyApp requires custom code to reload

its configuration when its state changes

reload.myotherconffile = access_endpoints /admin/myendpoint

########## Stanza-level reload triggers ##########

For any changed inputs.conf stanzas in the newly pushed cluster

bundle that start with the "monitor" stanza prefix, e.g.

[monitor://*], invoke the corresponding monitor input reload handler

as specified, i.e. /data/inputs/monitor/_reload

NOTE: The scripted input reload handler and the http input reload

will NOT be invoked if the only changed inputs stanzas in the

newly pushed cluster bundle are monitor inputs.

reload.inputs.monitor = access_endpoints /data/inputs/monitor reload.inputs.script = access_endpoints /data/inputs/script reload.inputs.http = access_endpoints /data/inputs/http