- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Server.conf serverName variables
agodoy
Communicator
07-01-2013
02:12 PM
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?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

andrewcg
Path Finder
06-26-2015
02:17 PM
You are on the right track with $, just use $ with the Windows environment variable.
[general]
serverName=$COMPUTERNAME
