We are pushing out forwarders to over 200 servers this month. I intend to connect the forwarders to a deployment server and then push out the server.conf file using the below setup.
serverName = $HOSTNAME
Since there are so many servers I do not want to manually set the hostname for each server. This seems to work but when I got to edit the inputs.conf file we have to monitor a server.log file that has the hostname before it.
I have tried setting "host1" to "$HOSTNAME" and "hostname". All which return the actual we are trying to monitor
When doing a ls -ltr on /testarea/$HOSTNAME_server.log it returns /testarea/host1_server.log.