<?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: Rename/Set Host Name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50816#M9738</link>
    <description>&lt;P&gt;below is what I added to the props.conf and transforms.conf &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[host::IP_Address]&lt;/P&gt;

&lt;P&gt;TRANSFORMS-host_rename = host_rename_HostA&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;[host_rename_HostA]&lt;/P&gt;

&lt;P&gt;REGEX = .&lt;/P&gt;

&lt;P&gt;DEST_KEY = MetaData:Host&lt;/P&gt;

&lt;P&gt;FORMAT = host::HostB&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:46:00 GMT</pubDate>
    <dc:creator>Emblibrary</dc:creator>
    <dc:date>2020-09-28T09:46:00Z</dc:date>
    <item>
      <title>Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50813#M9735</link>
      <description>&lt;P&gt;We recently set up splunk to start accepting snmp logs from our switches and routers, which is working out nicely.  However on the dashboard under the hosts table it lists the ip address instead of a hostname.  I was wondering if there is a way to set the hostname or possibly rename it, so on the dashboard we can see the name of it instead of the ip address.&lt;/P&gt;

&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 18:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50813#M9735</guid>
      <dc:creator>Emblibrary</dc:creator>
      <dc:date>2011-07-29T18:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50814#M9736</link>
      <description>&lt;P&gt;You can set the hostname with the 'host' variable in inputs.conf where the input is defined. You can also rewrite it with props/transforms. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#*******
# GENERAL SETTINGS:
# The following attribute/value pairs are valid for all input types (except file 
# system change monitor, which is described in a separate section in this file).
# You must first enter a stanza header in square brackets, specifying the input type. 
# See further down in this file for examples.   
# Then, use any of the following attribute/value pairs.
#*******

host = &amp;lt;string&amp;gt;
* Sets the host key/field to a static value for this stanza.
* Primarily used to control the host field, which will be used for events coming in
  via this input stanza.
* Detail: Sets the host key's initial value. The key is used during parsing/indexing, 
  in particular to set the host field. It is also the host field used at search time.
* As a convenience, the chosen string is prepended with 'host::'.
* If not set explicitly, this defaults to the IP address or fully qualified
  domain name of the host where the data originated.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To use props/transforms, see the following:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/1673/hostname-rename-using-transforms"&gt;http://splunk-base.splunk.com/answers/1673/hostname-rename-using-transforms&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 19:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50814#M9736</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-07-29T19:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50815#M9737</link>
      <description>&lt;P&gt;Thanks for the quick response, however neither method worked for changing the host name being displayed. &lt;/P&gt;

&lt;P&gt;I went to C:\Program Files\Splunk\etc\system\local and altered inputs.conf by adding line:&lt;BR /&gt;
host = NAME&lt;/P&gt;

&lt;P&gt;and then stopped/started splunk, however the name was still being displayed the same.  &lt;/P&gt;

&lt;P&gt;So next I tried the props/transforms method.  Went to C:\Program Files\Splunk\etc\system\default and altered the props.conf and transforms.conf by adding the sections mentioned in the article linked (Copy/Pasted them and just changed them to have my ip address and name I wanted).  Then again stopped/started splunk and the name is still displaying the same.  Not sure if I'm missing something here or what.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2011 20:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50815#M9737</guid>
      <dc:creator>Emblibrary</dc:creator>
      <dc:date>2011-07-29T20:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50816#M9738</link>
      <description>&lt;P&gt;below is what I added to the props.conf and transforms.conf &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[host::IP_Address]&lt;/P&gt;

&lt;P&gt;TRANSFORMS-host_rename = host_rename_HostA&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;P&gt;[host_rename_HostA]&lt;/P&gt;

&lt;P&gt;REGEX = .&lt;/P&gt;

&lt;P&gt;DEST_KEY = MetaData:Host&lt;/P&gt;

&lt;P&gt;FORMAT = host::HostB&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50816#M9738</guid>
      <dc:creator>Emblibrary</dc:creator>
      <dc:date>2020-09-28T09:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50817#M9739</link>
      <description>&lt;P&gt;Is the host field that is showing up in the events the same IP address? Your telling splunk to use that transform on the host field containing that IP. Also, not sure that your regex matching everything is going to work. You'll need to pull it out of the event and then rename using the appropriate variable.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2011 16:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50817#M9739</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-08-01T16:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50818#M9740</link>
      <description>&lt;P&gt;Simple question ... do the IPs for the hosts' sources resolve in DNS to the reverse name you'd like to see?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2012 20:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50818#M9740</guid>
      <dc:creator>iunderwood</dc:creator>
      <dc:date>2012-08-01T20:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50819#M9741</link>
      <description>&lt;P&gt;How are you getting the SNMP logs? Straight from a network port, opened by splunk? If that's the case, you can set it to resolve ips to their dns names. &lt;/P&gt;

&lt;P&gt;In your &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf"&gt;inputs.conf&lt;/A&gt; [tcp://:&lt;PORT&gt;] stanza, set:&lt;/PORT&gt;&lt;/P&gt;

&lt;P&gt;connection_host = dns&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50819#M9741</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2012-08-02T12:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rename/Set Host Name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50820#M9742</link>
      <description>&lt;P&gt;Which is the file to edit please?&lt;/P&gt;

&lt;P&gt;/mnt/data/splunk/etc/apps/introspection_generator_addon/default/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/apps/sample_app/default/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/apps/search/local/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/apps/SplunkLightForwarder/default/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/apps/Splunk_TA_nix/default/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/modules/distributedDeployment/classes/deployable/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/system/default/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/system/local/inputs.conf&lt;BR /&gt;
/mnt/data/splunk/etc/system/README/inputs.conf.example&lt;BR /&gt;
/mnt/data/splunk/etc/system/README/inputs.conf.spec&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-Set-Host-Name/m-p/50820#M9742</guid>
      <dc:creator>v1ncen7</dc:creator>
      <dc:date>2020-09-29T21:01:37Z</dc:date>
    </item>
  </channel>
</rss>

