<?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 How do I modify syslog host to be FQDN? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-modify-syslog-host-to-be-FQDN/m-p/363832#M93309</link>
    <description>&lt;P&gt;Splunk 7.0.2&lt;BR /&gt;
Universal forwarder running on a linux box &lt;CODE&gt;splunk2.lab.local&lt;/CODE&gt;&lt;BR /&gt;
This is sending a monitor &lt;CODE&gt;/var/log&lt;/CODE&gt; to a search at &lt;CODE&gt;splunk.lab.local&lt;/CODE&gt;&lt;BR /&gt;
Events are showing up as host &lt;CODE&gt;splunk2.lab.local&lt;/CODE&gt; except for source type &lt;CODE&gt;syslog&lt;/CODE&gt; which is coming in as just &lt;CODE&gt;splunk2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would like to normalize this so both hosts are &lt;CODE&gt;splunk2.lab.local&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I see in &lt;CODE&gt;props.conf&lt;/CODE&gt; on the search box:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORM = syslog-host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried just making that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORM =
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the best way to handle this? Should I do something on the linux host that will make it log its hostname in syslog as FQDN? Is there a way to handle it where maybe I can setup an alias or similar so that two values can be merged?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Feb 2018 05:21:30 GMT</pubDate>
    <dc:creator>bfeeny</dc:creator>
    <dc:date>2018-02-10T05:21:30Z</dc:date>
    <item>
      <title>How do I modify syslog host to be FQDN?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-modify-syslog-host-to-be-FQDN/m-p/363832#M93309</link>
      <description>&lt;P&gt;Splunk 7.0.2&lt;BR /&gt;
Universal forwarder running on a linux box &lt;CODE&gt;splunk2.lab.local&lt;/CODE&gt;&lt;BR /&gt;
This is sending a monitor &lt;CODE&gt;/var/log&lt;/CODE&gt; to a search at &lt;CODE&gt;splunk.lab.local&lt;/CODE&gt;&lt;BR /&gt;
Events are showing up as host &lt;CODE&gt;splunk2.lab.local&lt;/CODE&gt; except for source type &lt;CODE&gt;syslog&lt;/CODE&gt; which is coming in as just &lt;CODE&gt;splunk2&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I would like to normalize this so both hosts are &lt;CODE&gt;splunk2.lab.local&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I see in &lt;CODE&gt;props.conf&lt;/CODE&gt; on the search box:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORM = syslog-host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried just making that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORM =
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the best way to handle this? Should I do something on the linux host that will make it log its hostname in syslog as FQDN? Is there a way to handle it where maybe I can setup an alias or similar so that two values can be merged?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 05:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-modify-syslog-host-to-be-FQDN/m-p/363832#M93309</guid>
      <dc:creator>bfeeny</dc:creator>
      <dc:date>2018-02-10T05:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I modify syslog host to be FQDN?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-modify-syslog-host-to-be-FQDN/m-p/363833#M93310</link>
      <description>&lt;P&gt;I had a similar issue. Since it is recommended &lt;A href="http://www.georgestarcher.com/splunk-success-with-syslog/"&gt;to use a syslog server instead of sending syslog straight to Splunk&lt;/A&gt;, I put up an rsyslog server. My rsyslog server had the option %FROMHOST% to put incoming syslog traffic into&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/data/&amp;lt;reverse dns or ip address&amp;gt;/syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So each syslog client had a log file like /data/test.local/syslog (if reverse DNS was available) or /data/192.168.0.10/syslog.&lt;/P&gt;

&lt;P&gt;The Splunk directory monitor had the option "host_segment = 2", so the host field should either be the FQDN or the ip address. However, the syslog sourcetype overwrote the host value via "TRANSFORM = syslog-host".&lt;/P&gt;

&lt;P&gt;I did not like this behaviour. So like you I made the following changes via etc/system/local/props.conf on my heavy forwarder (because that's where the indexing phase took place):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORM =
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I think you are handling this just fine.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-modify-syslog-host-to-be-FQDN/m-p/363833#M93310</guid>
      <dc:creator>Yunagi</dc:creator>
      <dc:date>2018-02-13T09:44:24Z</dc:date>
    </item>
  </channel>
</rss>

