Deployment Architecture

What is the preferred way to remove a deployed application on a host?

lisaac
Path Finder

I have deployed an application via the deployment server. What is the preferred way to remove an app from a deployment client? It appears that the action can be completed by updating the whitelist or blacklist for the server class.

Tags (1)
0 Karma

Lowell
Super Champion

Chris R has a good approach if you are dealing with custom apps. However, if you are trying to disable built-in apps, such as SplunkForwarder or sample_app, you should consider disabling these apps instead of removing them. The reason being is that next time you install a Splunk upgrade, these apps will get re-installed and will be enabled again if you only removed the app folder.

One approach to wiping out an app is to create an empty app folder with nothing but the local/app.conf file, with the following content:

[install]
state = disabled

ben_leung
Builder

This disables the app? Or does it remove the custom app folder from the deployment clients as well?

0 Karma

Chris_R_
Splunk Employee
Splunk Employee

The app can simply be removed by deleting the contents of $SPLUNK_HOME/apps/< appname > on the client

You will of course have to remove the entry on your deployment server so the app does not get deployed again. Check in your $SPLUNK_HOME/etc/system/local/serverclass.conf which deploys that app to the client.

Look for the hostname or ip, something like

[serverClass:myapp1]
whitelist.0=hostname.*
...other stuff...
[serverClass:myapp1:app:myapp1_inputs]
restartSplunkd = true

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...