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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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