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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...