All Apps and Add-ons

How to package custom built app to install on another Splunk instance without downloading DB Connect add-on?

vikas_gopal
Builder

Hi Team,
I built an app and I have one add-on for this app which is DB Connect .Now I want to build a package for this app so that I can install it to another splunk instance without downloading DB connect on that machine .Please suggest what to do.

Thanks
Vikas

1 Solution

vikas_gopal
Builder

Finally I figured it out, so here are the steps to build a package
1) we have 2 different ways to build a package

  • With CLI or Zipping the app folder

2) For Zipping you just need to download 7 zip software and zip your app in .tar extension .Why “.tar” because Splunk reads or load “.tar or .spl” apps only.
Once you zip your app you can paste it to the fresh spluk instance/other machine and with the help of manage app create app from file you can install this app. Repeat the same steps for DB connect app or add on.
3) Second method to build an app package is CLI and with this method you will get .spl file and for this open cmd $Home$/splunk/bin

Now type
Splunk package app abc (here abc is you app name)
Here system will ask username and password, that is it you can check your .spl file in the following location
$Home$/Splunk/etc/system/static/app-packages

The easiest way to build package is with CLI

View solution in original post

vikas_gopal
Builder

Finally I figured it out, so here are the steps to build a package
1) we have 2 different ways to build a package

  • With CLI or Zipping the app folder

2) For Zipping you just need to download 7 zip software and zip your app in .tar extension .Why “.tar” because Splunk reads or load “.tar or .spl” apps only.
Once you zip your app you can paste it to the fresh spluk instance/other machine and with the help of manage app create app from file you can install this app. Repeat the same steps for DB connect app or add on.
3) Second method to build an app package is CLI and with this method you will get .spl file and for this open cmd $Home$/splunk/bin

Now type
Splunk package app abc (here abc is you app name)
Here system will ask username and password, that is it you can check your .spl file in the following location
$Home$/Splunk/etc/system/static/app-packages

The easiest way to build package is with CLI

ChrisG
Splunk Employee
Splunk Employee

If you have not already done so, you should read the information in the Developing Views and Apps for Splunk Web manual, especially the topic called Package your app or add-on.

With that said, are you talking about redistributing DB Connect? Splunk DB Connect is subject to the Splunk Software License Agreement. See section 5, "Software Restrictions."

vikas_gopal
Builder

Thanks Chris for the quick responce, I have alredy read this document I just have one confusion .Do i need to build 2 different packages for both (my app and DB connect) and then install these 2 on different machine or I can achive it with just one package that is my App.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...