<?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 tranforms file to change hosts for syslog not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/tranforms-file-to-change-hosts-for-syslog-not-working/m-p/102171#M21429</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
Note: I am using Splunk Universal forwarder&lt;BR /&gt;
We are forwarding logs form our central syslog server to a new splunk server.&lt;BR /&gt;
In the universal forwarder I am trying to put in a transform to change the host field to the machine that has sent the syslog logs to the central sylog server. &lt;/P&gt;

&lt;P&gt;All the syslog records have s_local@hostname in the record so I want to extract this hostname field. The logs files themselves are under the path /var/log/HOSTS/ on the central syslog server.  The problem is that only the syslog server shows up in the host field on the splunk server(syslog server name=hds1prd)&lt;/P&gt;

&lt;P&gt;The files on the forwader are:&lt;/P&gt;

&lt;P&gt;-inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/HOSTS/...]&lt;/P&gt;

&lt;P&gt;disabled = 0&lt;/P&gt;

&lt;P&gt;followTail = 0&lt;/P&gt;

&lt;P&gt;sourcetype = syslog&lt;/P&gt;

&lt;P&gt;whitelist = 2012&lt;/P&gt;

&lt;P&gt;-props.conf&lt;/P&gt;

&lt;P&gt;[ syslog ]&lt;/P&gt;

&lt;P&gt;TRANSFORMS-t1 = rename_host&lt;/P&gt;

&lt;P&gt;-transforms.conf&lt;/P&gt;

&lt;P&gt;[rename_host]&lt;/P&gt;

&lt;P&gt;REGEX = s_local@([^\s]+)&lt;/P&gt;

&lt;P&gt;FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;DEST_KEY = MetaData:Host&lt;/P&gt;

&lt;P&gt;Any help will be much appreciated,&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2012 00:34:56 GMT</pubDate>
    <dc:creator>nitin_mehta</dc:creator>
    <dc:date>2012-10-25T00:34:56Z</dc:date>
    <item>
      <title>tranforms file to change hosts for syslog not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/tranforms-file-to-change-hosts-for-syslog-not-working/m-p/102171#M21429</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Note: I am using Splunk Universal forwarder&lt;BR /&gt;
We are forwarding logs form our central syslog server to a new splunk server.&lt;BR /&gt;
In the universal forwarder I am trying to put in a transform to change the host field to the machine that has sent the syslog logs to the central sylog server. &lt;/P&gt;

&lt;P&gt;All the syslog records have s_local@hostname in the record so I want to extract this hostname field. The logs files themselves are under the path /var/log/HOSTS/ on the central syslog server.  The problem is that only the syslog server shows up in the host field on the splunk server(syslog server name=hds1prd)&lt;/P&gt;

&lt;P&gt;The files on the forwader are:&lt;/P&gt;

&lt;P&gt;-inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/HOSTS/...]&lt;/P&gt;

&lt;P&gt;disabled = 0&lt;/P&gt;

&lt;P&gt;followTail = 0&lt;/P&gt;

&lt;P&gt;sourcetype = syslog&lt;/P&gt;

&lt;P&gt;whitelist = 2012&lt;/P&gt;

&lt;P&gt;-props.conf&lt;/P&gt;

&lt;P&gt;[ syslog ]&lt;/P&gt;

&lt;P&gt;TRANSFORMS-t1 = rename_host&lt;/P&gt;

&lt;P&gt;-transforms.conf&lt;/P&gt;

&lt;P&gt;[rename_host]&lt;/P&gt;

&lt;P&gt;REGEX = s_local@([^\s]+)&lt;/P&gt;

&lt;P&gt;FORMAT = host::$1&lt;/P&gt;

&lt;P&gt;DEST_KEY = MetaData:Host&lt;/P&gt;

&lt;P&gt;Any help will be much appreciated,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 00:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/tranforms-file-to-change-hosts-for-syslog-not-working/m-p/102171#M21429</guid>
      <dc:creator>nitin_mehta</dc:creator>
      <dc:date>2012-10-25T00:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: tranforms file to change hosts for syslog not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/tranforms-file-to-change-hosts-for-syslog-not-working/m-p/102172#M21430</link>
      <description>&lt;P&gt;The main reason for that this isn't working is that you're applying these settings on your forwarder. Forwarders do not perform any parsing of data, so they cannot perform any filtering. These settings should go on your indexer instead.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 06:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/tranforms-file-to-change-hosts-for-syslog-not-working/m-p/102172#M21430</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-25T06:51:44Z</dc:date>
    </item>
  </channel>
</rss>

