<?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: Need to hard code host reported by Universal Forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232016#M45210</link>
    <description>&lt;P&gt;Are you positive you have updated in system local? Restart the service and check once...&lt;BR /&gt;
Use btool command to check your inputs and server conf&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2016 03:07:25 GMT</pubDate>
    <dc:creator>vasanthmss</dc:creator>
    <dc:date>2016-01-15T03:07:25Z</dc:date>
    <item>
      <title>Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232011#M45205</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We are currently in the process of moving some of our hosts from Solaris to Windows.  These hosts are part of Veritas clusters.&lt;/P&gt;

&lt;P&gt;Currently, the Solaris hosts report the Veritas cluster name via the Universal Forwarder.  We'd like to mimic this behavior within the Windows environment.&lt;/P&gt;

&lt;P&gt;I've attempted multiple things, including updating the host entry within the inputs.conf file, to no avail.  Splunk continues to report the physical host name of the server that the processes are running on.&lt;/P&gt;

&lt;P&gt;Any idea how to hard code the host name that is reported to our aggregation server via the Universal Forwarder?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232011#M45205</guid>
      <dc:creator>kollerj</dc:creator>
      <dc:date>2016-01-13T20:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232012#M45206</link>
      <description>&lt;P&gt;The host change in the inputs.conf will only change the host metadata for the events being monitored. You can change host name in the server.conf as well to change host property for internal logs.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232012#M45206</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-13T21:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232013#M45207</link>
      <description>&lt;P&gt;Hi Kollerj, &lt;/P&gt;

&lt;P&gt;Try to update like this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local/server.conf
[general]
serverName = &amp;lt;host_name&amp;gt;

$SPLUNK_HOME/etc/system/local/inputs.conf
[default]
host = &amp;lt;host_name&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check your other inputs.conf from other apps have host entry or not? I guess the apps you are on-boarding or monitoring inputs.conf has older entry. &lt;/P&gt;

&lt;P&gt;Or you can use the below CLI commands, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk set servername &amp;lt;host&amp;gt;
./splunk set default-hostname &amp;lt;host&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For windows you need to update server.conf's general stanza with additional option&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
hostnameOption = &amp;lt;ASCII string&amp;gt;
* The option used to specify the detail in the server name used to identify
  this Splunk instance.
* Can be one of "fullyqualifiedname" , "clustername", "shortname"
* Is applicable to Windows only
* Shall not be an empty string

Ref: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
V&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232013#M45207</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-01-13T21:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232014#M45208</link>
      <description>&lt;P&gt;Restart the server after configure the host name to see the changes. Accept the answer if it solves your issue. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 17:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232014#M45208</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-01-14T17:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232015#M45209</link>
      <description>&lt;P&gt;Hi vasanthmss,&lt;/P&gt;

&lt;P&gt;Thanks for the response.&lt;/P&gt;

&lt;P&gt;Unfortunately, this did not resolve the issue.  I see that both the inputs.conf and server.conf were updated to mlp-da02 by following your CLI commands -- I restarted both the forwarder as well as our central server, to no avail -- it is still reporting as xmlspap2x.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;server.conf:&lt;/STRONG&gt;&lt;BR /&gt;
[sslConfig]&lt;BR /&gt;
sslKeysfilePassword = X&lt;/P&gt;

&lt;P&gt;[general]&lt;BR /&gt;
pass4SymmKey = X&lt;BR /&gt;
serverName = mlp-da02&lt;/P&gt;

&lt;P&gt;[lmpool:auto_generated_pool_forwarder]&lt;BR /&gt;
description = auto_generated_pool_forwarder&lt;BR /&gt;
quota = MAX&lt;BR /&gt;
slaves = *&lt;BR /&gt;
stack_id = forwarder&lt;/P&gt;

&lt;P&gt;[lmpool:auto_generated_pool_free]&lt;BR /&gt;
description = auto_generated_pool_free&lt;BR /&gt;
quota = MAX&lt;BR /&gt;
slaves = *&lt;BR /&gt;
stack_id = free&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf:&lt;/STRONG&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
host = mlp-da02&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;splunkd.log:&lt;/STRONG&gt;&lt;BR /&gt;
01-14-2016 10:43:59.734 -0800 INFO  ServerConfig - My server name is "mlp-da02".&lt;BR /&gt;
01-14-2016 10:43:59.734 -0800 INFO  ServerConfig - Found no site defined in server.conf&lt;BR /&gt;
01-14-2016 10:43:59.734 -0800 INFO  ServerConfig - Found no hostname options in server.conf. Will attempt to use default for now.&lt;BR /&gt;
01-14-2016 10:43:59.734 -0800 INFO  ServerConfig - Host name option is "".&lt;BR /&gt;
&lt;STRONG&gt;01-14-2016 10:43:59.734 -0800 INFO  ServerConfig - My hostname is "XMLSPAP2X".&lt;/STRONG&gt;&lt;BR /&gt;
01-14-2016 10:43:59.749 -0800 INFO  ServerConfig - Setting HTTP server compression state=on&lt;BR /&gt;
01-14-2016 10:43:59.749 -0800 INFO  ServerConfig - Setting HTTP client compression state=0 (false)&lt;BR /&gt;
01-14-2016 10:43:59.749 -0800 INFO  ServerConfig - Default output queue for file-based input: parsingQueue.&lt;/P&gt;

&lt;P&gt;Any other thoughts?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232015#M45209</guid>
      <dc:creator>kollerj</dc:creator>
      <dc:date>2020-09-29T08:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232016#M45210</link>
      <description>&lt;P&gt;Are you positive you have updated in system local? Restart the service and check once...&lt;BR /&gt;
Use btool command to check your inputs and server conf&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 03:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232016#M45210</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-01-15T03:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232017#M45211</link>
      <description>&lt;P&gt;I got you..... in windows you need to add another parameter for host name in server.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
hostnameOption = &amp;lt;ASCII string&amp;gt;
* The option used to specify the detail in the server name used to identify
  this Splunk instance.
* Can be one of "fullyqualifiedname" , "clustername", "shortname"
* Is applicable to Windows only
* Shall not be an empty string
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Updating previous answer with this option&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 03:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232017#M45211</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-01-15T03:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232018#M45212</link>
      <description>&lt;P&gt;Is that helped?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 20:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232018#M45212</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-01-15T20:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232019#M45213</link>
      <description>&lt;P&gt;Hi Vasanthmss,&lt;/P&gt;

&lt;P&gt;What do you think this option needs to be set to?  I don't have any environment variables that match "mlp-da02" so I'm not sure which one I'd use.  Do you know where it pulls each name from?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jason &lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 21:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232019#M45213</guid>
      <dc:creator>kollerj</dc:creator>
      <dc:date>2016-01-15T21:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232020#M45214</link>
      <description>&lt;P&gt;Honestly I never tried it.  You can try one by one.... &lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 22:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232020#M45214</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2016-01-15T22:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232021#M45215</link>
      <description>&lt;P&gt;Unfortunately, none of the options got me what I was looking for.  &lt;/P&gt;

&lt;P&gt;01-18-2016 12:37:52.014 -0800 INFO  ServerConfig - Host name option is "shortname".&lt;BR /&gt;
01-18-2016 12:37:52.014 -0800 INFO  ServerConfig - My hostname is "xmlspap2x".&lt;/P&gt;

&lt;P&gt;01-18-2016 12:32:28.343 -0800 INFO  ServerConfig - Host name option is "fullyqualifiedname".&lt;BR /&gt;
01-18-2016 12:32:28.343 -0800 INFO  ServerConfig - My hostname is "xmlspap2x.lsas.ca.kp.org".&lt;/P&gt;

&lt;P&gt;01-18-2016 12:35:06.332 -0800 INFO  ServerConfig - Host name option is "clustername".&lt;BR /&gt;
01-18-2016 12:35:06.332 -0800 INFO  ServerConfig - My hostname is "xmlspap2x".&lt;/P&gt;

&lt;P&gt;An other ideas?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232021#M45215</guid>
      <dc:creator>kollerj</dc:creator>
      <dc:date>2016-01-18T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need to hard code host reported by Universal Forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232022#M45216</link>
      <description>&lt;P&gt;The value that changes the "server name" is under the server.conf file. Changing the name should be done in two places, inputs.conf and server.conf. The "host name" value is taken from the server, when the server was first created or changed at the OS level. There isn't a splunk config file that will change the "host name" value. &lt;BR /&gt;
Second, the data coming from the UF, will have the "server name" when it reaches the indexer and can be searched by host="mlp-da02" as in the example above.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 22:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-to-hard-code-host-reported-by-Universal-Forwarder/m-p/232022#M45216</guid>
      <dc:creator>sgarvin55</dc:creator>
      <dc:date>2016-02-18T22:45:35Z</dc:date>
    </item>
  </channel>
</rss>

