<?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: Strip &amp;quot;Original Address&amp;quot; text in splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184457#M36946</link>
    <description>&lt;P&gt;If the host name is part of the filename you can extract that with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host_regex = &amp;lt;reg_ex&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in your inputs.conf.  If the name is not on the file name a transform it is.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jan 2015 16:44:07 GMT</pubDate>
    <dc:creator>trsavela</dc:creator>
    <dc:date>2015-01-15T16:44:07Z</dc:date>
    <item>
      <title>Strip "Original Address" text in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184453#M36942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i would like to strip the "Original Address" Text that splunk appends. How do i do this ? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Original Address=xx.xx.x.x 1 2015-01-15T14:28:51.341+11:00......................................... 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 03:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184453#M36942</guid>
      <dc:creator>nishan_perera</dc:creator>
      <dc:date>2015-01-15T03:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strip "Original Address" text in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184454#M36943</link>
      <description>&lt;P&gt;I think Original Address data is actually present in the input before splunk gets it. This is a common thing for syslog implentations to do. Can you elaborate on why you think that splunk is appending this to your events/results?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 04:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184454#M36943</guid>
      <dc:creator>chanfoli</dc:creator>
      <dc:date>2015-01-15T04:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Strip "Original Address" text in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184455#M36944</link>
      <description>&lt;P&gt;when i check the syslog before it gets forwarded to splunk it looks like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-01-14 00:00:06 Local0.Info xx.xx.xxx.xx    1 2015-01-13T23:59:04.196+11:00.............
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So splunk basically append "Original Address=" infront of the Source IP&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 04:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184455#M36944</guid>
      <dc:creator>nishan_perera</dc:creator>
      <dc:date>2015-01-15T04:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Strip "Original Address" text in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184456#M36945</link>
      <description>&lt;P&gt;Hi nishan_perera,&lt;/P&gt;

&lt;P&gt;Like @chanfoli wrote, this caused by the forwarding syslog server. You can fix it in Splunk by using a transformation.&lt;BR /&gt;
It should be done on the indexer(s). You will need two files, props.conf and transforms.conf, both of them in &lt;STRONG&gt;$SPLUNK_HOME/etc/system/local&lt;/STRONG&gt;. I will assume that this is the only data that is coming from the syslog server, and that the syslog server is named syslogServer (for my example).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::syslogServer]
TRANSFORMS-t1=rename_host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rename_host]
REGEX=Original Address\=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
DEST_KEY=MetaData:Host
FORMAT=host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This transformation will be applied to data from the host as it is indexed. Data already in the index will not be affected.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 06:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184456#M36945</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-01-15T06:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strip "Original Address" text in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184457#M36946</link>
      <description>&lt;P&gt;If the host name is part of the filename you can extract that with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host_regex = &amp;lt;reg_ex&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in your inputs.conf.  If the name is not on the file name a transform it is.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-quot-Original-Address-quot-text-in-splunk/m-p/184457#M36946</guid>
      <dc:creator>trsavela</dc:creator>
      <dc:date>2015-01-15T16:44:07Z</dc:date>
    </item>
  </channel>
</rss>

