All Apps and Add-ons

Packaging app and add-on together in to one.tgz file

haripriyasarvep
Explorer

I created and add-on using Splunk add-on builder and also an app related to the add-on. Now I need to package both app and add-on together and delpoy on to the another splunk instance. Please help me out on how to create this .tgz file which includes both app and add-on.

Labels (1)
Tags (1)
0 Karma
1 Solution

PavelP
Motivator

Hello @haripriyasarvepalli1

I'm not sure this is a correct way to deploy apps and addons, but technically this is just a tar command:

cd $SPLUNK_HOME/etc/apps
tar cfz /tmp/app_with_addon.tgz MyApp TA_myAddon
  • tar cfz - create a compressed tgz file
  • MyApp - a folder with your App in $SPLUNK_HOME/etc/apps
  • TA_myAddon - a folder with your Add-on in $SPLUNK_HOME/etc/apps

there are other ways if you just want to transfer files from one splunk instance to other. Usually rsync, sftp or scp are used among other methods.

View solution in original post

0 Karma

PavelP
Motivator

Hello @haripriyasarvepalli1

I'm not sure this is a correct way to deploy apps and addons, but technically this is just a tar command:

cd $SPLUNK_HOME/etc/apps
tar cfz /tmp/app_with_addon.tgz MyApp TA_myAddon
  • tar cfz - create a compressed tgz file
  • MyApp - a folder with your App in $SPLUNK_HOME/etc/apps
  • TA_myAddon - a folder with your Add-on in $SPLUNK_HOME/etc/apps

there are other ways if you just want to transfer files from one splunk instance to other. Usually rsync, sftp or scp are used among other methods.

0 Karma

haripriyasarvep
Explorer

Thank you PaveIP. This way worked and also we tried with 7-zip , it also worked. Really thankyou for quick response.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...