Deployment Architecture

Splunk forwarder configuration - set the default host name when using a deployment server?

msarro
Builder

Hey everyone. We are working to get a deployment server up and running. However our original manual configurations include in the inputs.conf file a host= field, which specifies the server FQDN (each server one has several, and due to geographical redundancy we have some servers which have the same shortname but different fqdns). We can't use those files with the deployment server since they'd only be valid on a single server.

So can that be manually configured in another file at install time of the forwarder in another configuration file? We've looked at modifying server.conf's serverName= field, but that doesn't appear to make any difference.

Tags (1)

adamw
Communicator

When configuring the splunk deployment client, you can set

clientName =

in deploymentclient.conf as the hostname of the particular client to be sent to the deployment server. This would allow you to create stanzas in serverclass.conf to web-1.domain.com, even though the actual hostname on this particular server might be web.domain.com

Thanks,
--adam

0 Karma

echalex
Builder

So, in the configuration distributed by the deployment server, are you specifying host= in inputs.conf? I think first thing is to remove that.

What will work is specifying host=<fqdn> in etc/system/local/inputs.conf.

This is also set by Splunk when installing. However the name used is whatever is returned by the hostname command. So before installing splunk, you need your /etc/hosts set up to specify the FQDN as hostname, or use DNS. If you already installed splunk, or if you can't change the hots's configs, edit etc/system/local/inputs.conf manually.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...