<?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 Changing the default hostname of Splunk Universal Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650606#M110548</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I had installed UF on a windows server in our environment which is reporting to our Deployment server, Recently the hostname on it got changed and it stopped reporting to DS.&lt;/P&gt;&lt;P&gt;I referred to this link and tried to run the below commands on CLI:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-can-I-change-the-default-hostname-in-Splunk/m-p/117398" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/How-can-I-change-the-default-hostname-in-Splunk/m-p/117398&lt;/A&gt;&lt;/P&gt;&lt;P&gt;./splunk set servername foo.domain.com&lt;/P&gt;&lt;P&gt;./splunk set default-hostname foo.domain.com&lt;/P&gt;&lt;P&gt;However, it is not recognizing these commands on the windows CLI .&lt;/P&gt;&lt;P&gt;Error : "'./splunk' is not recognized as an internal or external command,&lt;BR /&gt;operable program or batch file."&lt;/P&gt;&lt;P&gt;Can you all kindly help understand what could be the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had ran these commands after going to the path where splunk UF is installed and under /etc/system/local/ directory.&lt;/P&gt;&lt;P&gt;But I am still getting this error, I am not sure if I am missing any step, or is it the path error and why these commands are not working.&lt;/P&gt;&lt;P&gt;We do not want to touch the configuration files, we would like to do the changes through CLI itself.&lt;/P&gt;&lt;P&gt;Can someone please help me in understanding the steps needed to be followed.&lt;/P&gt;&lt;P&gt;Thanks a ton in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 17:19:16 GMT</pubDate>
    <dc:creator>izzie123</dc:creator>
    <dc:date>2023-07-14T17:19:16Z</dc:date>
    <item>
      <title>Changing the default hostname of Splunk Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650606#M110548</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I had installed UF on a windows server in our environment which is reporting to our Deployment server, Recently the hostname on it got changed and it stopped reporting to DS.&lt;/P&gt;&lt;P&gt;I referred to this link and tried to run the below commands on CLI:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-can-I-change-the-default-hostname-in-Splunk/m-p/117398" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/How-can-I-change-the-default-hostname-in-Splunk/m-p/117398&lt;/A&gt;&lt;/P&gt;&lt;P&gt;./splunk set servername foo.domain.com&lt;/P&gt;&lt;P&gt;./splunk set default-hostname foo.domain.com&lt;/P&gt;&lt;P&gt;However, it is not recognizing these commands on the windows CLI .&lt;/P&gt;&lt;P&gt;Error : "'./splunk' is not recognized as an internal or external command,&lt;BR /&gt;operable program or batch file."&lt;/P&gt;&lt;P&gt;Can you all kindly help understand what could be the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had ran these commands after going to the path where splunk UF is installed and under /etc/system/local/ directory.&lt;/P&gt;&lt;P&gt;But I am still getting this error, I am not sure if I am missing any step, or is it the path error and why these commands are not working.&lt;/P&gt;&lt;P&gt;We do not want to touch the configuration files, we would like to do the changes through CLI itself.&lt;/P&gt;&lt;P&gt;Can someone please help me in understanding the steps needed to be followed.&lt;/P&gt;&lt;P&gt;Thanks a ton in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 17:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650606#M110548</guid>
      <dc:creator>izzie123</dc:creator>
      <dc:date>2023-07-14T17:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the default hostname of Splunk Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650621#M110550</link>
      <description>&lt;P&gt;Understand that Splunk primarily is a&amp;nbsp; Linux product that also runs on Windows.&amp;nbsp; Most documentation you will see is written for Linux users.&amp;nbsp; Windows users need to translate "./splunk" to "splunk.exe".&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 18:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650621#M110550</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-14T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the default hostname of Splunk Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650657#M110557</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; Thank you for your reply.&lt;/P&gt;&lt;P&gt;I tried running the command "splunk.exe show servername" to check but I am still getting the same error.&lt;/P&gt;&lt;P&gt;Can you help with the command that needs to be run?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 04:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650657#M110557</guid>
      <dc:creator>izzie123</dc:creator>
      <dc:date>2023-07-15T04:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the default hostname of Splunk Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650661#M110558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250908"&gt;@izzie123&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;run following command&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;cd C:\Program Files\Splunk\bin&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;splunk show servername&lt;/P&gt;&lt;P&gt;splunk set servername &amp;lt;servername&amp;gt;&lt;/P&gt;&lt;P&gt;splunk set default-hostname &amp;lt;servername&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;----&lt;BR /&gt;Regards,&lt;BR /&gt;Sanjay Reddy&lt;/P&gt;&lt;P&gt;----&lt;BR /&gt;If this reply helps you, Karma would be appreciated&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 06:00:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650661#M110558</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2023-07-15T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the default hostname of Splunk Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650702#M110561</link>
      <description>&lt;P&gt;Documentation assumes you are in the directory where the command resides.&amp;nbsp; If you aren't then use the commands appropriate for your platform/shell to get to the correct file system location.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 20:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-the-default-hostname-of-Splunk-Universal-Forwarder/m-p/650702#M110561</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-07-15T20:56:12Z</dc:date>
    </item>
  </channel>
</rss>

