<?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 Syslog Server to Splunk showing incorrect host - During Splunk test before implementation in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96394#M20093</link>
    <description>&lt;P&gt;Currently at the company I work for we are runing a trial on Splunk for a couple of months to check that it meets our requirements.&lt;/P&gt;

&lt;P&gt;Currently all events are being forwarded on to the Splunk server directly for the syslog server, meaning that the syslog server is seen as the host on every occasion is there anyway this can be changed to the end host name?&lt;/P&gt;

&lt;P&gt;In an example entry below the second IP in bold is the host that should be listed as the host within Splunk instead of the Syslog server. Is there anyway to change this? I would only be for the duration of the test, and I understand the syslog should be going directly to Splunk but hope there is a way to resolve this in the meantime.&lt;/P&gt;

&lt;P&gt;Mar 19 13:57:37 172.X.X.X Mar 19 13:57:39 &lt;STRONG&gt;172.X.X.X&lt;/STRONG&gt; auditd: date="2012-03-19 13:57:39 +0000",fac=f_kernel_ipfilter,area=a_general_area,type=t_nettraffic,pri=p_major,hostname=server.domain.com,event="session end",application=ALL-TCP-UDP,netsessid=e0e4a4f673b53,srcip=172.X.X.X,srcport=0000,srczone=rDMZ_VLAN401,protocol=6,dstip=192.168.1.1,dstport=0000,dstzone=DMZ_VLAN,bytes_written_to_client=0,bytes_written_to_server=0,rule_name="WAN Sites to XXXXX",cache_hit=0,start_time="2012-03-19 13:57:39 +0000"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=SYSLOG SERVER   Options|  
sourcetype=syslog   Options|  
source=udp:514   Options
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Appreciate any help&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:32:23 GMT</pubDate>
    <dc:creator>j666gak</dc:creator>
    <dc:date>2020-09-28T11:32:23Z</dc:date>
    <item>
      <title>Syslog Server to Splunk showing incorrect host - During Splunk test before implementation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96394#M20093</link>
      <description>&lt;P&gt;Currently at the company I work for we are runing a trial on Splunk for a couple of months to check that it meets our requirements.&lt;/P&gt;

&lt;P&gt;Currently all events are being forwarded on to the Splunk server directly for the syslog server, meaning that the syslog server is seen as the host on every occasion is there anyway this can be changed to the end host name?&lt;/P&gt;

&lt;P&gt;In an example entry below the second IP in bold is the host that should be listed as the host within Splunk instead of the Syslog server. Is there anyway to change this? I would only be for the duration of the test, and I understand the syslog should be going directly to Splunk but hope there is a way to resolve this in the meantime.&lt;/P&gt;

&lt;P&gt;Mar 19 13:57:37 172.X.X.X Mar 19 13:57:39 &lt;STRONG&gt;172.X.X.X&lt;/STRONG&gt; auditd: date="2012-03-19 13:57:39 +0000",fac=f_kernel_ipfilter,area=a_general_area,type=t_nettraffic,pri=p_major,hostname=server.domain.com,event="session end",application=ALL-TCP-UDP,netsessid=e0e4a4f673b53,srcip=172.X.X.X,srcport=0000,srczone=rDMZ_VLAN401,protocol=6,dstip=192.168.1.1,dstport=0000,dstzone=DMZ_VLAN,bytes_written_to_client=0,bytes_written_to_server=0,rule_name="WAN Sites to XXXXX",cache_hit=0,start_time="2012-03-19 13:57:39 +0000"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=SYSLOG SERVER   Options|  
sourcetype=syslog   Options|  
source=udp:514   Options
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Appreciate any help&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96394#M20093</guid>
      <dc:creator>j666gak</dc:creator>
      <dc:date>2020-09-28T11:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Server to Splunk showing incorrect host - During Splunk test before implementation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96395#M20094</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;

&lt;P&gt;For the &lt;CODE&gt;syslog&lt;/CODE&gt; sourcetype, Splunk already does something similar to this. Just that you seem to have another layer of syslog host forwarding going on. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
By default, logs with sourcetype &lt;CODE&gt;syslog&lt;/CODE&gt; get the transform &lt;CODE&gt;syslog-host&lt;/CODE&gt; applied to them. This is what it looks like (it's available in &lt;CODE&gt;$SPLUNK_HOME/etc/system/default/transforms.conf&lt;/CODE&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog-host]
DEST_KEY = MetaData:Host
REGEX = :\d\d\s+(?:\d+\s+|(?:user|daemon|local.?)\.\w+\s+)*\[?(\w[\w\.\-]{2,})\]?\s
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want this transform to work differently, just redefine it (for instance in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/transforms.conf&lt;/CODE&gt;). This transform should work in your case (I can't guarantee it's totally bulletproof though):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog-host]
DEST_KEY = MetaData:Host
REGEX = ^(?:\S+\s+){7}(\S+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Mar 2012 15:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96395#M20094</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-03-19T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Server to Splunk showing incorrect host - During Splunk test before implementation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96396#M20095</link>
      <description>&lt;P&gt;There's a default transform available to strip the syslog header (date and host) from a syslog event:  [syslog-header-stripper-ts-host].  Thought I was using this already for an exact example, but this should work.  Assuming your syslog file is /my/folder/messages:&lt;/P&gt;

&lt;P&gt;In a props.conf entry:&lt;BR /&gt;
[source::/my/folder/messages]&lt;BR /&gt;
TRANSFORMS-my_syslog=syslog-header-stripper-ts-host&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2012 15:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96396#M20095</guid>
      <dc:creator>mikelanghorst</dc:creator>
      <dc:date>2012-03-19T15:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Server to Splunk showing incorrect host - During Splunk test before implementation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96397#M20096</link>
      <description>&lt;P&gt;That worked great, thanks for the help Ayn&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2012 16:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/96397#M20096</guid>
      <dc:creator>j666gak</dc:creator>
      <dc:date>2012-03-22T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog Server to Splunk showing incorrect host - During Splunk test before implementation</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/529854#M89242</link>
      <description>&lt;P&gt;sure, it will replace "host" field base on regex, and how to keep hostname of forwarder to new field?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 03:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-Server-to-Splunk-showing-incorrect-host-During-Splunk/m-p/529854#M89242</guid>
      <dc:creator>bambarit</dc:creator>
      <dc:date>2020-11-18T03:28:26Z</dc:date>
    </item>
  </channel>
</rss>

