<?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: Splunk Forwarder to automatically use FQDN as hostname, how to configure? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590480#M103443</link>
    <description>&lt;P&gt;Confirming &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/160866"&gt;@mattymo&lt;/a&gt; response, unfortunately this does not work, Splunk still only take the short hostname - not FQDN - as hostname.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 16:09:20 GMT</pubDate>
    <dc:creator>xisteam</dc:creator>
    <dc:date>2022-03-23T16:09:20Z</dc:date>
    <item>
      <title>Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/577911#M102075</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;How can I configure Splunk Universal Forwarder in Linux to use FQDN - basically the result of &lt;FONT face="andale mono,times"&gt;hostname -f&lt;/FONT&gt; - as hostname &lt;STRONG&gt;automatically&lt;/STRONG&gt;, i.e. without "hard-wiring" the FQDN in any of Splunk's configuration files? If no simple configuration to do this, probably there is a way to do it with a script that triggered every time I start Splunk Forwarder?&lt;/P&gt;&lt;P&gt;I have been using &lt;FONT face="andale mono,times"&gt;host = $decideOnStartup&lt;/FONT&gt; in &lt;FONT face="andale mono,times"&gt;inputs.conf&lt;/FONT&gt;, which pick up the hostname of the machine. However for many distro hostname is just the first part of FQDN.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 21:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/577911#M102075</guid>
      <dc:creator>xisteam</dc:creator>
      <dc:date>2021-12-09T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/579700#M102319</link>
      <description>&lt;P&gt;Hi..!!&lt;/P&gt;&lt;P&gt;If you want to use FQDN for the host, you can continue using&amp;nbsp;&lt;FONT face="andale mono,times"&gt;host = $decideOnStartup&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;in&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="andale mono,times"&gt;inputs.conf.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Along with this, you'll need to set below config in server.conf&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="andale mono,times"&gt; hostnameOption=fullyqualifiedname&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;More informations related to hostname can be found in &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Admin/Serverconf" target="_blank" rel="noopener"&gt;server.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 17:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/579700#M102319</guid>
      <dc:creator>tshah-splunk</dc:creator>
      <dc:date>2021-12-31T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/579701#M102320</link>
      <description>&lt;P&gt;Looks like `hostnameOption` is Windows only, fyi..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hostnameOption = [ fullyqualifiedname | clustername | shortname ]
* The type of information to use to determine how splunkd sets the 'host' value for a Windows
  Splunk platform instance when you specify an input stanza with 'host = $decideOnStartup'.
* Applies only to Windows hosts, and only for input stanzas that use the
  "host = $decideOnStartup" setting and value.
* Valid values are "fullyqualifiedname", "clustername", and "shortname".
* The value returned for the 'host' field depends on Windows DNS, NETBIOS,
  and what the name of the host is.
  * 'fullyqualifiedname' uses Windows DNS to return the fully qualified host name as the value.
  * 'clustername' also uses Windows DNS, but sets the value to the domain and machine name.
  * 'shortname' returns the NETBIOS name of the machine.
* Cannot be an empty string.
* Default: shortname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 18:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/579701#M102320</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2021-12-31T18:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/579724#M102322</link>
      <description>&lt;P&gt;Can we also try with&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;following option in inputs.conf&lt;BR /&gt;&lt;BR /&gt;[default]&lt;BR /&gt;host=&amp;lt;hostnameinfqdn&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 07:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/579724#M102322</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-01-02T07:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590479#M103442</link>
      <description>&lt;P&gt;Thanks, but unfortunately this does not work, Splunk still only take the short hostname - not FQDN - as hostname.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590479#M103442</guid>
      <dc:creator>xisteam</dc:creator>
      <dc:date>2022-03-23T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590480#M103443</link>
      <description>&lt;P&gt;Confirming &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/160866"&gt;@mattymo&lt;/a&gt; response, unfortunately this does not work, Splunk still only take the short hostname - not FQDN - as hostname.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590480#M103443</guid>
      <dc:creator>xisteam</dc:creator>
      <dc:date>2022-03-23T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590490#M103444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240802"&gt;@xisteam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;just for re verification, I have performed same steps&amp;nbsp; in my personal system mentioned earlier reply,&amp;nbsp; I am&amp;nbsp; able to change the host value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;under etc/system/local I added follwing&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[default]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;host=dummy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[monitor://‪C:\Program Files\Splunk\var\log\splunk\splunkd.log]&lt;BR /&gt;disabled = false&lt;BR /&gt;sourcetype = test&lt;BR /&gt;index = main&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;restarted&amp;nbsp; the splunk&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;now I am able to updated host name&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SanjayReddy_0-1648052866078.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18720i92144125E2967285/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SanjayReddy_0-1648052866078.png" alt="SanjayReddy_0-1648052866078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590490#M103444</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-23T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590719#M103465</link>
      <description>&lt;P&gt;Sorry, I think you misunderstood my question. I already knew that specifying a hostname explicitly will work. However, I am interested in having the hostname automatically set - either on Splunk startup or machine startup or more often - to the FQDN of the machine at the time. Therefore if I ever change the hostname of the machine - which we do quite often here - the hostname Splunk uses will automatically changed as well. And Splunk actually have solution for MS Windows (use &lt;FONT face="andale mono,times"&gt;hostnameinfqdn&lt;/FONT&gt; in &lt;FONT face="andale mono,times"&gt;server.conf&lt;/FONT&gt; as mentioned above), but that does not work in Linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590719#M103465</guid>
      <dc:creator>xisteam</dc:creator>
      <dc:date>2022-03-24T15:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590722#M103466</link>
      <description>&lt;P&gt;I meant using&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="andale mono,times"&gt;hostnameOption=fullyqualifiedname&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;But it won't work in Linux.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590722#M103466</guid>
      <dc:creator>xisteam</dc:creator>
      <dc:date>2022-03-24T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder to automatically use FQDN as hostname, how to configure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590986#M103528</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240802"&gt;@xisteam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;try using command&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$SPLUNK_HOME$/bin&lt;/P&gt;&lt;P&gt;./splunk set servername &lt;STRONG&gt;&amp;lt;servername&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;it will update server name in server.conf&lt;BR /&gt;&lt;BR /&gt;[general]&lt;BR /&gt;serverName = Server1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;| rest /services/authentication/users splunk_server=local&lt;BR /&gt;| dedup splunk_server&lt;BR /&gt;| table splunk_server&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SanjayReddy_0-1648366422263.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18788i7CC4D4F409562CDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SanjayReddy_0-1648366422263.png" alt="SanjayReddy_0-1648366422263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope you are expcting this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2022 07:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-to-automatically-use-FQDN-as-hostname-how-to/m-p/590986#M103528</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-27T07:34:14Z</dc:date>
    </item>
  </channel>
</rss>

