<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I control the client's Host Name that appears in Forwarder Management? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150823#M5650</link>
    <description>&lt;P&gt;We're experiencing the same issue....Has anyone figured out a fix yet?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2016 22:17:30 GMT</pubDate>
    <dc:creator>sidekix24</dc:creator>
    <dc:date>2016-11-18T22:17:30Z</dc:date>
    <item>
      <title>How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150816#M5643</link>
      <description>&lt;P&gt;Question:&lt;BR /&gt;
How can I control the client's "Host Name" that appears in Forwarder Management?&lt;/P&gt;

&lt;P&gt;Configuration:&lt;BR /&gt;
Splunk Server on EC2&lt;BR /&gt;
Universal Forwarder on another EC2&lt;BR /&gt;
On the client, I have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default] 
host = mongod-eu-20141003
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in &lt;CODE&gt;./search/local/inputs.conf&lt;/CODE&gt;, and that appears correctly in the Search plugin.&lt;/P&gt;

&lt;P&gt;Where do I need to put that "host" declaration for that same value to be used in Forwarder Management? I've tried several locations, including directly in the deploymentclient.conf stanza where I tell it how to find the deployement server, but I always just see the DNS name in the list of available servers in Forwarder Management. So instead of &lt;CODE&gt;mongod-eu-20141003&lt;/CODE&gt; it just shows the basic EC2 hostname, i.e. &lt;CODE&gt;ip-[local-vpc-ip-address]&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2014 13:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150816#M5643</guid>
      <dc:creator>fsalamo</dc:creator>
      <dc:date>2014-10-03T13:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150817#M5644</link>
      <description>&lt;P&gt;there is different conf files you can set this depending if you are looking at setting the actual hostname or the instance name or custom client name:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf for splunk actual hostname&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = &amp;lt;string&amp;gt;
* Sets the host key/field to a static value for this stanza.
* Primarily used to control the host field, which will be used for events coming in
  via this input stanza.
* Detail: Sets the host key's initial value. The key is used during parsing/indexing, 
  in particular to set the host field. It is also the host field used at search time.
* As a convenience, the chosen string is prepended with 'host::'.
* WARNING: Do not quote the &amp;lt;string&amp;gt; value: host=foo, not host="foo".
* If set to '$decideOnStartup', will be interpreted as hostname of executing machine;
  such interpretation will occur on each splunkd startup.  This is the default.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;server.conf for splunk instance name :&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
serverName = &amp;lt;ASCII string&amp;gt;
    * The name used to identify this Splunk instance for features such as distributed search.
    * Defaults to &amp;lt;hostname&amp;gt;-&amp;lt;user running splunk&amp;gt;.
    * May not be an empty string
    * May contain environment variables
    * After any environment variables have been expanded, the server name (if not an IPv6
      address) can only contain letters, numbers, underscores, dots, and dashes; and
      it must start with a letter, number, or an underscore.  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;deploymentclient.conf for custom client name&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[deployment-client]
clientName = deploymentClient
    * Defaults to deploymentClient.
    * A name that the deployment server can filter on.
    * Takes precedence over DNS names.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Oct 2014 16:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150817#M5644</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2014-10-03T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150818#M5645</link>
      <description>&lt;P&gt;Thanks! It was clientName that I was missing. I was assuming it could not be overridden because it was a GUID. I ran into the whitelist bug after that, but it was an easy workaround.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2014 17:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150818#M5645</guid>
      <dc:creator>fsalamo</dc:creator>
      <dc:date>2014-10-03T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150819#M5646</link>
      <description>&lt;P&gt;I am looking to override the Host Name in the Forwarder Management but I have been unsuccessful.  Changing the clientName in deployment.conf changes the Client Name but not the Host Name.&lt;/P&gt;

&lt;P&gt;We have changed the inputs.conf to reflect the new name but need to have consistency for scripting with the Host Name in Forwarder Management.&lt;/P&gt;

&lt;P&gt;All changes/testing were done in C:\Program Files\SplunkUniversalForwarder\etc\system\local and we need to be able to do this in both Windows and Linux - any idea what I may be missing?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 21:30:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150819#M5646</guid>
      <dc:creator>ppeterson</dc:creator>
      <dc:date>2016-07-14T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150820#M5647</link>
      <description>&lt;P&gt;The following makes it clear that &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;inputs.conf&lt;/A&gt; is the right place.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 00:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150820#M5647</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-15T00:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150821#M5648</link>
      <description>&lt;P&gt;Thanks for your response, however the documentation doesn't align with the reality of my experience and testing.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 02:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150821#M5648</guid>
      <dc:creator>ppeterson</dc:creator>
      <dc:date>2016-07-15T02:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150822#M5649</link>
      <description>&lt;P&gt;Same issue.  I wish to override the Host Name in Forwarder Managment but changing clientName in deploymentclient.conf, serverName in server.conf, or hosts in inputs.conf has no effect.  This is with universal forwarder v6.5.0&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:59:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150822#M5649</guid>
      <dc:creator>suarezry</dc:creator>
      <dc:date>2016-11-08T15:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150823#M5650</link>
      <description>&lt;P&gt;We're experiencing the same issue....Has anyone figured out a fix yet?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 22:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150823#M5650</guid>
      <dc:creator>sidekix24</dc:creator>
      <dc:date>2016-11-18T22:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150824#M5651</link>
      <description>&lt;P&gt;My apologies, I should have posted this.  This works up to 6.4.3 UF's...  I would still prefer to have the ability to overwrite the hostname as I needed to rewrite some validation scripts to account for this using the clientName field:&lt;/P&gt;

&lt;P&gt;Windows&lt;BR /&gt;
C:\Program Files\SplunkUniversalForwarder\splunkforwarder\etc\system\local\deploymentclient.conf" and change the "clientName = XXX"   This requires creating a "deployment-client" stanza and adding a "clientName = XXX" before the target-broker and targetURI:&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;[deployment-client]&lt;/P&gt;

&lt;P&gt;clientName = XXX&lt;/P&gt;

&lt;P&gt;[target-broker:deploymentServer]&lt;/P&gt;

&lt;P&gt;targetUri = 10.1.1.1:8089&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 02:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/150824#M5651</guid>
      <dc:creator>ppeterson</dc:creator>
      <dc:date>2016-11-19T02:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/538699#M18497</link>
      <description>&lt;P&gt;The simple answer is: Host Name in Forwarder Management is the same as you would get using the hostname shell command in both *nix and Windows. The answer marked Solution is not entirely true. If you restart splunk you will also see this hostname in the splunkd.log. I don't think there is and should be any way to override that value. Also it is very useful to see the real hostname.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;02-04-2021 22:05:22.836 +0100 INFO  ServerConfig - My hostname is "smarttest-old.band.com".&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 23:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/538699#M18497</guid>
      <dc:creator>pellegrini</dc:creator>
      <dc:date>2021-02-04T23:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/572502#M24964</link>
      <description>&lt;P&gt;I&amp;nbsp;strongly disagree, as the Forwarder Management in a Deployment Server &lt;STRONG&gt;does not&lt;/STRONG&gt; allow you to search via&amp;nbsp;Instance Name.&amp;nbsp;&lt;BR /&gt;It makes it difficult to match data you see in Splunk to the actual Host sending it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/572502#M24964</guid>
      <dc:creator>Akeydel</dc:creator>
      <dc:date>2021-10-26T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/573631#M25010</link>
      <description>&lt;P&gt;Correct, Instance Name is not searchable in Forwarder Management (and cannot be used in serverclass.conf).&lt;/P&gt;&lt;P&gt;Host Name in Forwarder Management is the real server name as perceived by Splunk and cannot be configured.&lt;/P&gt;&lt;P&gt;Host field in an event is coming from the host stanza in inputs.conf&lt;/P&gt;&lt;P&gt;If host in inputs.conf is set to a static value e.g. the server hostname, and the server hostname is changed, then event Host field and Host Name in Forwarder Management will differ. That situation is problematic.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 14:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/573631#M25010</guid>
      <dc:creator>pellegrini</dc:creator>
      <dc:date>2021-11-04T14:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/576468#M25069</link>
      <description>&lt;P&gt;Some years later and this is still the case. Neither inputs.conf, server.conf, or deploymentclient.conf will change the 'Host Name' for the forwarder under mangement of the Deployment Server.&lt;/P&gt;&lt;P&gt;It may take some environment variable or startup variable to change this. I am not sure.&lt;/P&gt;&lt;P&gt;Sad this is so difficult and should be far easier.&lt;/P&gt;&lt;P&gt;(IMHO Splunk puts far too much on their customers and now cutting support for non-paid apps means even MORE is put on the customers. I bet it comes back to bite them soon.)&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 01:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/576468#M25069</guid>
      <dc:creator>emikulic</dc:creator>
      <dc:date>2021-11-27T01:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I control the client's Host Name that appears in Forwarder Management?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/596753#M25603</link>
      <description>&lt;P&gt;As I've learned recently, there's nothing stopping someone from defining a different Host value in an input, and causing that problematic situation much more quickly and broadly.&amp;nbsp;&lt;BR /&gt;This seems like a huge oversight in functionality.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 15:42:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-can-I-control-the-client-s-Host-Name-that-appears-in/m-p/596753#M25603</guid>
      <dc:creator>Akeydel</dc:creator>
      <dc:date>2022-05-06T15:42:16Z</dc:date>
    </item>
  </channel>
</rss>

