<?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: Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237657#M96285</link>
    <description>&lt;P&gt;Thanks rjthibod, but I know that if I change the inputs.conf on each forwarder that it fixes the issue. If I have to do this manually it's going to take a long time to login to each and every server to make the change.&lt;/P&gt;

&lt;P&gt;How can I accomplish this from the Splunk server without making changes directly on the forwarder? &lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2016 19:21:07 GMT</pubDate>
    <dc:creator>kltest</dc:creator>
    <dc:date>2016-10-08T19:21:07Z</dc:date>
    <item>
      <title>Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237655#M96283</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I need to set Windows forwarders to use the FQDN as the hostname across all inputs, as I have duplicate hostnames in my environment. I've tried changing everything in a Splunk deployment app, but the only thing that seems to work is if I manually correct the entry in C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf from hostname to FQDN.&lt;BR /&gt;
From:&lt;BR /&gt;
[default]&lt;BR /&gt;
host = svr-vCenter&lt;/P&gt;

&lt;P&gt;To:&lt;BR /&gt;
[default]&lt;BR /&gt;
host = svr-vCenter.domain.local&lt;/P&gt;

&lt;P&gt;The changes that I've made in the deployment app have meant that the splunkd.log reports the name correctly:&lt;BR /&gt;
10-08-2016 16:46:59.063 +0100 INFO  ServerConfig - Host name option is "fullyqualifiedname".&lt;BR /&gt;
10-08-2016 16:46:59.063 +0100 INFO  ServerConfig - My hostname is "svr-vCenter.domain.local".&lt;/P&gt;

&lt;P&gt;But anything sent to the Splunk indexer shows up as the shortname and the FQDN gets ignored unless I change the file above.&lt;/P&gt;

&lt;P&gt;Is there any way I can automatically set this during install or afterwards in Splunk other than manually changing the contents of the file? What am I missing as this is driving me nuts!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 16:04:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237655#M96283</guid>
      <dc:creator>kltest</dc:creator>
      <dc:date>2016-10-08T16:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237656#M96284</link>
      <description>&lt;P&gt;Check server.conf in the same local folder. I think there is a hostname setting in there.&lt;/P&gt;

&lt;P&gt;Regarding how to handle this across multiple installs, the Splunk forwarder will set the hostname at the time of install if you it is a fresh install.  if you are copying system images that already contain the Splunk forwarder, you need to run an additional command to clear out the host-specific information.  The command is &lt;CODE&gt;./splunk clone-prep-clear-config&lt;/CODE&gt;. If you are using this on a already cloned system, run that command and then restart the Splunk forwarder service. It should update its values upon restart.&lt;/P&gt;

&lt;P&gt;Here are more detailed instructions about replicating Forwarder installation across multiple guests.  &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Integrateauniversalforwarderontoasystemimage"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Integrateauniversalforwarderontoasystemimage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 16:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237656#M96284</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-08T16:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237657#M96285</link>
      <description>&lt;P&gt;Thanks rjthibod, but I know that if I change the inputs.conf on each forwarder that it fixes the issue. If I have to do this manually it's going to take a long time to login to each and every server to make the change.&lt;/P&gt;

&lt;P&gt;How can I accomplish this from the Splunk server without making changes directly on the forwarder? &lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 19:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237657#M96285</guid>
      <dc:creator>kltest</dc:creator>
      <dc:date>2016-10-08T19:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237658#M96286</link>
      <description>&lt;P&gt;Apologies for being slightly redundant.&lt;/P&gt;

&lt;P&gt;As far as doing it from the Splunk server, the only thing I can think of that will change the files on the servers would be a custom deployment app. &lt;/P&gt;

&lt;P&gt;From the Splunk Forwarder Management (Deployment Server), you would send an app to each forwarder. That app would just be a batch file or Powershell script that edits the file in the manner you require. I am pretty sure the app runs with the permissions allocated to the forwarder, so potential access control concerns issues could arise if the app doesn't run with system-level admin privileges needed to edit the configuration file.&lt;/P&gt;

&lt;P&gt;Other than that, you could write a powershell script to perform remote commands on each server. That would be an exercise outside of Splunk (as you very well know).&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 20:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237658#M96286</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-08T20:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237659#M96287</link>
      <description>&lt;P&gt;Were you able to discover a graceful solution?  I am also having this issue.  Quite frustrating that it does not default to the FQDN.  Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 14:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237659#M96287</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2017-04-22T14:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Override hostname to FQDN in etc/system/local/inputs.conf on Windows Forwarder v6.5</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237660#M96288</link>
      <description>&lt;P&gt;The funny thing is that when we deploy the apps via the deployment server, we specify the servers in the &lt;CODE&gt;serverclass.conf&lt;/CODE&gt; and we specify them using FQDN. So, why does the software determine the host name by itself after discovering it via set-up in &lt;CODE&gt;serverclass.conf&lt;/CODE&gt;? which leads to these very annoying discrepancies. &lt;/P&gt;

&lt;P&gt;So, it would be nice if there was a way to carry the name from the &lt;CODE&gt;serverclass.conf&lt;/CODE&gt; to &lt;CODE&gt;inputs.conf&lt;/CODE&gt; of the forwarder. It's true that sometimes, we specify a set of hosts in &lt;CODE&gt;serverclass.conf&lt;/CODE&gt;using wildcards, which might make the transition more complex.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 23:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Override-hostname-to-FQDN-in-etc-system-local-inputs-conf-on/m-p/237660#M96288</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-04-22T23:25:43Z</dc:date>
    </item>
  </channel>
</rss>

