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!

.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 ...