<?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 to disable the host extraction for syslog sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87328#M18108</link>
    <description>&lt;P&gt;The syslog sourcetype is different from all the others. The host is extracted from the events. and the expected format it like : &lt;TIMESTAMP&gt; &lt;HOST&gt; &lt;EVENT&gt; &lt;BR /&gt;
FYI you can look at the default rules for syslog in $SPLUNK_HOME/etc/system/default/props.conf and transforms.conf (but do not edit the defaults) &lt;/EVENT&gt;&lt;/HOST&gt;&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;You have to use another source type or disable this special syslog feature. &lt;/P&gt;

&lt;P&gt;I recommend to &lt;STRONG&gt;define another sourcetype&lt;/STRONG&gt; (like syslog_nohost), and still can use a sourcetype renaming at search-time.&lt;/P&gt;

&lt;P&gt;example on the indexer in $SPLUNK_HOME/etc/system/local/props.conf  (or any any app) &lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
 # props.conf &lt;BR /&gt;
 # new sourcetype : syslog without host extraction &lt;BR /&gt;
 # please note the empty TRANSFORMS line &lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;[syslog_nohost] &lt;BR /&gt;
TRANSFORMS = &lt;BR /&gt;
pulldown_type = true &lt;BR /&gt;
maxDist = 3 &lt;BR /&gt;
TIME_FORMAT = %b %d %H:%M:%S &lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32 &lt;BR /&gt;
REPORT-syslog = syslog-extractions &lt;BR /&gt;
SHOULD_LINEMERGE = False &lt;BR /&gt;
&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:06:41 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2020-09-28T13:06:41Z</dc:date>
    <item>
      <title>How to disable the host extraction for syslog sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87327#M18107</link>
      <description>&lt;P&gt;I noticed that the host in syslog events is not the forwarder hostname, but is extracted from the events.&lt;BR /&gt;
How to avoid that ?&lt;/P&gt;

&lt;P&gt;example or inputs.conf, I try to force the host&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[monitor://var/log/app/]&lt;BR /&gt;
sourcetype=syslog&lt;BR /&gt;
host=gloubiboulga&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;but the  events have a different host in it&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
Jan 13 06:36:45 biffur rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="2857" x-info="&lt;A href="http://www.rsyslog.com%22"&gt;http://www.rsyslog.com"&lt;/A&gt;] rsyslogd was HUPed, type 'lightweight'.&lt;BR /&gt;
Jan 14 06:33:23 bonfur rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="2857" x-info="&lt;A href="http://www.rsyslog.com%22"&gt;http://www.rsyslog.com"&lt;/A&gt;] rsyslogd was HUPed, type 'lightweight'.&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 02:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87327#M18107</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2013-01-15T02:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable the host extraction for syslog sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87328#M18108</link>
      <description>&lt;P&gt;The syslog sourcetype is different from all the others. The host is extracted from the events. and the expected format it like : &lt;TIMESTAMP&gt; &lt;HOST&gt; &lt;EVENT&gt; &lt;BR /&gt;
FYI you can look at the default rules for syslog in $SPLUNK_HOME/etc/system/default/props.conf and transforms.conf (but do not edit the defaults) &lt;/EVENT&gt;&lt;/HOST&gt;&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;You have to use another source type or disable this special syslog feature. &lt;/P&gt;

&lt;P&gt;I recommend to &lt;STRONG&gt;define another sourcetype&lt;/STRONG&gt; (like syslog_nohost), and still can use a sourcetype renaming at search-time.&lt;/P&gt;

&lt;P&gt;example on the indexer in $SPLUNK_HOME/etc/system/local/props.conf  (or any any app) &lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
 # props.conf &lt;BR /&gt;
 # new sourcetype : syslog without host extraction &lt;BR /&gt;
 # please note the empty TRANSFORMS line &lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;[syslog_nohost] &lt;BR /&gt;
TRANSFORMS = &lt;BR /&gt;
pulldown_type = true &lt;BR /&gt;
maxDist = 3 &lt;BR /&gt;
TIME_FORMAT = %b %d %H:%M:%S &lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32 &lt;BR /&gt;
REPORT-syslog = syslog-extractions &lt;BR /&gt;
SHOULD_LINEMERGE = False &lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87328#M18108</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2020-09-28T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable the host extraction for syslog sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87329#M18109</link>
      <description>&lt;P&gt;I will try that, I have syslog logs for other servers, so I prefer not to change the default.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 02:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-disable-the-host-extraction-for-syslog-sourcetype/m-p/87329#M18109</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2013-01-15T02:22:01Z</dc:date>
    </item>
  </channel>
</rss>

