Topics

| pdf version

App directory structure

This documentation applies to the following versions of Splunk: 4.0 , 4.0.1 , 4.0.2 , 4.0.3 , 4.0.4 , 4.0.5 , 4.0.6 , 4.0.7 , 4.0.8 , 4.0.9

App directory structure

All Apps live in a custom directory, within $SPLUNK_HOME/etc/apps.

Note: When you build an App via appbuilder, all these directories are automatically created.

App Structure

Within this directory are the following subdirectories:

  • Default/
    • Put all the Splunk configuration files your App needs in Default. All Apps must have an app.conf. Some may also contain savedsearches.conf, inputs.conf, or other relevant configuration files.
  • Local/
    • Developers don't configure anything within the local dir. It is there for App users and admins to overwrite any default configurations.

Within both default and local directories, there are more subdirectories for configuring the UI. These are contained within $SPLUNK_HOME/etc/apps/<App_name>/<default or local>/data/UI/, and include:

  • Views/

Custom configurations

To add any custom modules, images, CSS or HTML to your App, add the appserver/static directories within your App's directory ($SPLUNK_HOME/etc/apps/<App_name>/). Use the static directory to:

Revision: 207 Contact Privacy Policy Terms of Use Community content licensed under Creative Commons