<?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: How do I set a hostname? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9241#M34</link>
    <description>&lt;P&gt;Corrolary to emma: be wary of sourcetyping things as 'syslog' which aren't, as you may get other strings pulled out as a hostname.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jan 2010 05:20:34 GMT</pubDate>
    <dc:creator>jrodman</dc:creator>
    <dc:date>2010-01-16T05:20:34Z</dc:date>
    <item>
      <title>How do I set a hostname?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9238#M31</link>
      <description>&lt;P&gt;What do I need to do to set the correct hostname for an event?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2010 12:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9238#M31</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-01-15T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a hostname?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9239#M32</link>
      <description>&lt;P&gt;Hostnames in splunk can be set in many ways. &lt;/P&gt;

&lt;P&gt;You can set it explicitly in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;For incoming TCP traffic, the host can be set with the following in your inputs.conf
connection_host = ip | dns&lt;/P&gt;

&lt;P&gt;The host value can always be overwritten via props/transforms configurations.  This is how the host value is set when the event is sourcetyped as syslog.  Props/transforms configs will trump what is defined in inputs.conf&lt;/P&gt;

&lt;P&gt;More details can be found &lt;A href="http://www.splunk.com/base/Documentation/4.0.8/Admin/Howhostworks" rel="nofollow"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2010 12:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9239#M32</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-01-15T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a hostname?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9240#M33</link>
      <description>&lt;P&gt;an important thing to note:  if you're indexing syslog data, set the sourcetype to "syslog" and your host will be extracted automatically from your events.  you can set a default host that will get assigned to any event that doesn't contain a host name or IP address.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2010 03:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9240#M33</guid>
      <dc:creator>emma</dc:creator>
      <dc:date>2010-01-16T03:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set a hostname?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9241#M34</link>
      <description>&lt;P&gt;Corrolary to emma: be wary of sourcetyping things as 'syslog' which aren't, as you may get other strings pulled out as a hostname.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2010 05:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-set-a-hostname/m-p/9241#M34</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-01-16T05:20:34Z</dc:date>
    </item>
  </channel>
</rss>

