Deployment Architecture

Server.conf serverName variables

agodoy
Communicator

I am trying to develop a standardized version of server.conf to deploy to all my forwarders.

In a Windows environment I am using the following:

serverName = $HOSTNAME

I tried using %COMPUTERNAME% but Splunk displayed an error when using %s. Fortunatly there was no errors when using a *nix variable. Where can I verify that the value for serverName is being interpreted correctly?

Tags (1)
0 Karma

andrewcg
Path Finder

You are on the right track with $, just use $ with the Windows environment variable.

 [general]
 serverName=$COMPUTERNAME
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...