<?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: File Monitor Not Assigning the right host name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181614#M36407</link>
    <description>&lt;P&gt;Is it possible that your files are syslog style, and Splunk is seeing this and extracting and overwriting the host from the contents of the file?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2014 15:10:33 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2014-03-11T15:10:33Z</dc:date>
    <item>
      <title>File Monitor Not Assigning the right host name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181613#M36406</link>
      <description>&lt;P&gt;Here is a portion of my inputs.conf&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;[monitor:///mnt/log/192.168.100.200/messages]&lt;/P&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;followTail = 0&lt;/P&gt;

&lt;P&gt;host = &lt;/P&gt;

&lt;P&gt;host_segment = 3&lt;/P&gt;

&lt;P&gt;index = num1&lt;/P&gt;

&lt;P&gt;[monitor:///mnt/log/192.168.100.300/messages]&lt;/P&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;followTail = 0&lt;/P&gt;

&lt;P&gt;host = MyFileServer1.local&lt;/P&gt;

&lt;P&gt;index = num2&lt;/P&gt;

&lt;P&gt;[monitor:///mnt/log/192.168.100.400/messages]&lt;/P&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;followTail = 0&lt;/P&gt;

&lt;P&gt;host = MyFileServer2.local&lt;/P&gt;

&lt;P&gt;index = num2&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;As you can see the first one is using host_segment = 3 to assign a host name based on the monitor path.&lt;/P&gt;

&lt;P&gt;The second two use a “Constant Value” to assign the host name&lt;/P&gt;

&lt;P&gt;After I put in there values all three are using the segment = 3 to assign the hostname to the logs&lt;/P&gt;

&lt;P&gt;I deleted the entries and put them back in as you see above and still the host name for the last two are using the IP as the host name.&lt;/P&gt;

&lt;P&gt;What can I do to change this?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181613#M36406</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-03-11T14:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: File Monitor Not Assigning the right host name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181614#M36407</link>
      <description>&lt;P&gt;Is it possible that your files are syslog style, and Splunk is seeing this and extracting and overwriting the host from the contents of the file?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 15:10:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181614#M36407</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2014-03-11T15:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: File Monitor Not Assigning the right host name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181615#M36408</link>
      <description>&lt;P&gt;I suppose this is possible,  you would know better than I.  In any case I did explicitly call for the host name in the inputs.conf and there should not be any automated feature that over rides my explicit input.&lt;/P&gt;

&lt;P&gt;How would I fix the automated override of syslog data?&lt;/P&gt;

&lt;P&gt;Should I set the sourcetype to SYSLOG rather than automatic?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 15:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/File-Monitor-Not-Assigning-the-right-host-name/m-p/181615#M36408</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-03-11T15:44:23Z</dc:date>
    </item>
  </channel>
</rss>

