Developing Dashboards, Views, and Apps for Splunk Web

 


How to package your app

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

How to package your app

You can distribute your app on Splunkbase, which will make it available to everyone in the Splunk community. Before you run the packaging script within Splunk, please read through the best practices on this page.

Best practices

Before you publish your app on Splunkbase, it's a good idea to make sure you have the following:

Use the Appbuilder script

If you are using the Appbuilder script, app configurations can either be in default or local; the script will combine your configurations into the default directory upon packaging.

From the Splunk command line, enter:

./splunk package app <app_name>

For example:

./splunk package app customer_experience

Use your own method

You can use your OS specific tar/gzip application of choice, just make sure that whatever application you use allows both tar and gzip. You want to end up with a .tgz file that you'll rename as .spl.

Before you zip and tar up your app, take all the components you've configured and make sure they are in your app's default directory in $SPLUNK_HOME/etc/apps/<your_app>/default/.

Then, tar and gzip the app. Make sure you rename the extension from .tgz to .spl.

On Unix/Mac OS, you can run the following command from the commandline:

tar -czf <app_name>.spl app_dir/

Then you’ll get an spl file (just a tgz but with a special suffix).

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 , 4.0.10 , 4.0.11 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.