<?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: Deploy Server showing incorrect Deploy Client hostname: in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Deploy-Server-showing-incorrect-Deploy-Client-hostname/m-p/75986#M2620</link>
    <description>&lt;P&gt;I had it in my head that the "splunk set servername" was supposed to provide this name, but it does not.   After some grinding, I discovered that the "My hostname is" mentioned above, comes from the system file /etc/hostname.   So I used the UNIX command "hostname myname.splunk.com" to set the hostname, restarted the splunkforwarder on the client, then ran "./splunk refresh deploy-clients" on the deploy server and it worked.  I am now able to use host name directives in serverclass.conf.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2012 19:19:25 GMT</pubDate>
    <dc:creator>ppacheco</dc:creator>
    <dc:date>2012-07-04T19:19:25Z</dc:date>
    <item>
      <title>Deploy Server showing incorrect Deploy Client hostname:</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deploy-Server-showing-incorrect-Deploy-Client-hostname/m-p/75985#M2619</link>
      <description>&lt;P&gt;I am using splunk 4.3 in Amazon's ec2.  I have used the "./splunk set servername" and restarted on all of the clients.  But using "./splunk list deploy-clients" on the deploy server shows the ec2 internal hostname for all but a few hosts.  A couple of outliers are properly showing the name as defined by "./splunk set servername", but I can't seem to figure out why about 5 percent of the hosts are working.  On the deploy server, I've tried "./splunk refresh deploy-clients" with no change.  I've tried resetting the servername as well as the default-hostname on the clients then refreshing on the deploy server, to no avail.  I also confirmed that on both a working host and a non-working host the server.conf file looks the same.&lt;/P&gt;

&lt;P&gt;Going to the logs, I see the entry in splunkd.log on the working host is like this:&lt;BR /&gt;
05-09-2012 18:27:09.422 +0000 INFO  ServerConfig - My hostname is "reportdb.us-east-1.foo.com".&lt;/P&gt;

&lt;P&gt;On a non-working host is like this:&lt;BR /&gt;
06-14-2012 21:26:58.769 +0000 INFO  ServerConfig - My hostname is "ip-10-124-193-41".&lt;/P&gt;

&lt;P&gt;How do I force the deploy server to see the desired hostname so that I can get server classes working?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 22:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deploy-Server-showing-incorrect-Deploy-Client-hostname/m-p/75985#M2619</guid>
      <dc:creator>ppacheco</dc:creator>
      <dc:date>2012-06-14T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Server showing incorrect Deploy Client hostname:</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Deploy-Server-showing-incorrect-Deploy-Client-hostname/m-p/75986#M2620</link>
      <description>&lt;P&gt;I had it in my head that the "splunk set servername" was supposed to provide this name, but it does not.   After some grinding, I discovered that the "My hostname is" mentioned above, comes from the system file /etc/hostname.   So I used the UNIX command "hostname myname.splunk.com" to set the hostname, restarted the splunkforwarder on the client, then ran "./splunk refresh deploy-clients" on the deploy server and it worked.  I am now able to use host name directives in serverclass.conf.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 19:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Deploy-Server-showing-incorrect-Deploy-Client-hostname/m-p/75986#M2620</guid>
      <dc:creator>ppacheco</dc:creator>
      <dc:date>2012-07-04T19:19:25Z</dc:date>
    </item>
  </channel>
</rss>

