Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (2024)

In the previous post in this series, I described how to setup an app for deploying HEC to multiple heavy forwarders. The best way to do this is via a deployment server. This is not a “deployer server”; a deployer is used to push apps to search head clusters. A deployment server is used to push apps to Splunk Universal Forwarders (UFs) and non clustered Splunk servers, like heavy forwarders. All Splunk Enterprise instances can be a deployment server. A universal forwarder cannot be a deployment server. To make a Splunk Enterprise server a deployment server, change into the /opt/splunk/etc/delpoyment-apps folder. In this folder, copy in the app you want to deploy out to servers. Here are the steps to create an app. I am going to show you the method of using the GUI so you can then see the resulting folder structure for a Splunk app.

On the server that will be the deployment server, go to Manage Apps. If you are on the launcher page, that will be the gear icon.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (1)

This will take you to the apps screen. Once there, click on the Create App button at the right.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (2)

The following screen will appear.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (3)

Enter a name for the app (Ex: Splunk HEC)
Enter a folder name (Note: cannot use spaces. Ex: splunk_hec)
Enter a version number (Ex: 1.0.0) – this is optional
Mark the app as visible or not. If there is going to be dashboards and such for your app, make it visible, otherwise set this to No.
Enter an author name – this is optional
Enter a description – this is optional
Leave the template at Barebones and click Save at the bottom.

Now lets check out the app folder structure. Go to the CLI and go into /opt/splunk/etc/apps (this is where new apps default to). Change into the folder of the app you just created.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (4)

As you can see, 4 folders are created. The Splunk best practice when creating a new app is to add your settings into the default folder so lets change into that folder. In this scenario, we are going to create an inputs.conf file and paste in the HEC settings from the previous post.

Once the inputs.conf file is saved, move the app folder into the deployment-apps folder.

mv /opt/splunk/etc/apps/splunk_hec /opt/splunk/etc/deployment-apps

Now we will go into the Splunk GUI again on the server that will be the deployment server. Click on Settings – Forwarder Management

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (5)

Now you will get a screen similar to below.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (6)

Before moving that app into deployment-apps, this screen would have been blank. As you can see, there is 1 app [Apps (1)]. There are no clients though. Easy! We need to tell the server we want to push the app to how to find the deployment server. Normally you would set this in a template build of a new Splunk server (to automate it) but for this example you can run the following command:

/opt/splunk/bin/splunk set deploy-poll <deployment server name or IP>:8089

You are likely to be prompted for a username and password. Enter a Splunk username/pass that has admin rights. Once the command is complete, restart splunk.

/opt/splunk/bin/splunk restart

Once Splunk comes back up, in the Deployment Server page, this server should show up within a few minutes.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (7)

And there it is! But we are not done! There is another piece to this. We need to create a server class. A server class is how you assign clients to apps. Click on Server Classes.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (8)

This server does not have any server classes yet to click create one.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (9)

Choose a name for the server class. In this case, I used Splunk, HF for heavy forwarder and HEC since this will be for the new HEC app. Click Save.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (10)

Lets add the server into Clients. Click Add Clients.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (11)

Under the include section, you type in the server names that you want to be in this server class. Once the servers are there, click Save.

Don’t add the app yet as we may want to make sure that Splunkd restarts are part of the app deploy. Click on apps and Edit the app.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (12)

Check the box Restart Splunkd if you want Splunk to restart on deploy. I recommend checking this since this app will not go into effect without a restart of Splunk. Under server classes, pick the server class we just created. Click Save.

That’s it! The app will deploy on the next poll from the client that was added into the server class.

You can force the client to check in and pull the app by using the command below.

/opt/splunk/bin/splunk reload deploy-server -class <server class name>

Oh, let’s check the server to see if the app now shows up

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (13)

There it is! You have successfully deployed an app using the deployment server!

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (14)

Shawn Cannon

Hello! I am Shawn Cannon and I have been dabbling in IT related things officially since 1996. I am our Executive Senior Blogger with experience in VMware, Microsoft, EMC storage, Veeam and Dell servers. For the past 3.5 years I have been working with Splunk. I am a VMware vExpert as well as a SplunkTrust member. I lead the Splunk user group in Atlanta. I am a proud father of two grown girls and in my spare time I like to go bowling, fishing and love to read.

I'm Shawn Cannon, an accomplished IT professional with a track record spanning back to 1996. Over the years, I've amassed a wealth of experience in various domains, including VMware, Microsoft, EMC storage, Veeam, and Dell servers. For the last 3.5 years, I've been deeply immersed in the world of Splunk, where I've not only gained expertise but also earned recognition as a VMware vExpert and a member of the esteemed SplunkTrust community. In addition to my technical prowess, I lead the Splunk user group in Atlanta, showcasing my commitment to community engagement.

Now, let's dive into the concepts outlined in the provided article:

  1. Heavy Forwarders and HEC Deployment:

    • The article focuses on deploying HTTP Event Collector (HEC) to multiple heavy forwarders. HEC is a feature in Splunk that allows the submission of events over HTTP, enabling data ingestion into Splunk.
  2. Deployment Server:

    • A deployment server in Splunk is distinct from a deployer server. The deployment server is responsible for pushing apps to Splunk Universal Forwarders (UFs) and non-clustered Splunk servers, such as heavy forwarders. It plays a crucial role in managing configurations across multiple instances.
  3. App Creation:

    • The article guides users through creating a Splunk app using the GUI. Key steps include providing a name, folder name, version number, and specifying visibility. It also covers optional details like author name and description.
  4. Folder Structure:

    • The article explains the resulting folder structure of a Splunk app, highlighting the creation of four folders. It emphasizes the Splunk best practice of adding settings into the default folder.
  5. Configuration File (inputs.conf):

    • Within the app creation process, the article demonstrates the creation of an inputs.conf file. This file contains HEC settings, facilitating the configuration of data inputs for the app.
  6. Deployment Process:

    • The deployment process involves moving the created app folder into the deployment-apps folder on the server designated as the deployment server.
  7. Server Configuration:

    • The article delves into configuring the deployment server through the Splunk GUI. It covers setting up forwarder management and includes steps to inform the server about the deployment server, ensuring proper communication.
  8. Server Class:

    • Server classes are introduced as a means of assigning clients to apps. The article guides users through creating a server class, naming it appropriately, and adding clients to it.
  9. App Deployment:

    • The article concludes with steps to deploy the app to the designated clients within the server class. It includes an option to restart Splunk on deploy for the changes to take effect.
  10. Verification and Monitoring:

    • The article provides steps to check if the app has been successfully deployed, emphasizing the importance of monitoring and verifying the deployment status.

In essence, the article provides a comprehensive guide to setting up a deployment server, creating a Splunk app, and efficiently deploying it to multiple heavy forwarders, showcasing my in-depth understanding of Splunk and deployment strategies.

Splunk Blog Series – Deploying an App Via Deployment Server – vBrainstorm.com (2024)

FAQs

What is the purpose of a Splunk deployment server? ›

A deployment server is a Splunk Enterprise instance that acts as a centralized configuration manager for any number of other instances, called "deployment clients". Any full Splunk Enterprise instance - even one indexing data locally - can act as a deployment server. A deployment server cannot be a client of itself.

Which of the Splunk components is connected with deployment server? ›

The deployment server is the tool for distributing configurations, apps, and content updates to groups of Splunk Enterprise instances. You can use it to distribute updates to most types of Splunk Enterprise components: forwarders, non-clustered indexers, and search heads.

How do I stop Splunk deployment server? ›

To disable the DS temporarily, issue the splunk stop command to the DS. Run splunk start to restart the DS. While the DS is down, apps on clients will be unaffected, however, the clients will log messages about being unable to connect to the DS. Once the DS is restarted it will resume normal functionality.

What is the maximum number of deployment server clients in Splunk? ›

splunk says that deployment server With standard configurations (12 gb memory and 12 cpu with 64-bit) can manage upto 8k clients with dedicated deployment server functionality. scaling up to manage 400-2000 clients with specs you have for deployment server might not be a problem.

Does a Splunk deployment server need a license? ›

Enterprise features are not available to to free users. Answering your question directly, yes you need a licence (or license, in American terms) to create a deployment server.

Can Splunk be deployed on premise? ›

You can deploy Splunk Enterprise Security on-premises and on Splunk Cloud Platform.

What are the three main components of Splunk? ›

Splunk Components. The primary components in the Splunk architecture are the forwarder, the indexer, and the search head.

How do I disable deployment? ›

In the details pane, switch to the Deployment tab. Select a deployment. In the ribbon, on the Deployment tab, select Disable. For a device-based deployment, note the name of the collection in Collection field of the deployment.

How do I stop splunk from running? ›

Log in as the user account running Splunk Enterprise processes. Open a shell prompt. Type: splunk [start|stop|restart] .

How to install apps on Splunk? ›

In Splunk Web, click the Apps gear icon. Click Browse more apps. The Splunk App Browser opens. Find your app or add-on, then click Install.

How do I upload apps to Splunk cloud? ›

In Splunk Web, click the Apps gear icon. Open the Uploaded Apps tab, and click Upload App. Enter your splunk.com account credentials. Splunk Cloud Platform uses these credentials to authenticate your AppInspect app validation.

Top Articles
What Is The Pitman Schedule and Is It Right For Your Business? | Homebase
How much does 5 million public liability insurance cost?
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Margart Wisoky

Last Updated:

Views: 5644

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Margart Wisoky

Birthday: 1993-05-13

Address: 2113 Abernathy Knoll, New Tamerafurt, CT 66893-2169

Phone: +25815234346805

Job: Central Developer

Hobby: Machining, Pottery, Rafting, Cosplaying, Jogging, Taekwondo, Scouting

Introduction: My name is Margart Wisoky, I am a gorgeous, shiny, successful, beautiful, adventurous, excited, pleasant person who loves writing and wants to share my knowledge and understanding with you.