<?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: Remove ::ffff: from logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55106#M10721</link>
    <description>&lt;P&gt;Hi there - If you are doing this permanently, then it is done at index time on your indexer layer. In that case, you will configure this via the props.conf entry.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #props.conf
 [answers-1370377923]
 SEDCMD-remove_ffff = s/::ffff://g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;docs&lt;/A&gt;. (Look for SEDCMD)&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;If this is a general context obfuscation, where the end result is presented as a non-drillable component, then it can be done at search time - it would just be part of your search syntax.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="answers-1370377923" | rex mode=sed "s/::ffff://g"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;See the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;docs&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 01:12:48 GMT</pubDate>
    <dc:creator>Gilberto_Castil</dc:creator>
    <dc:date>2016-10-12T01:12:48Z</dc:date>
    <item>
      <title>Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55101#M10716</link>
      <description>&lt;P&gt;I am looking to remove the ::ffff: from Windows event logs:&lt;/P&gt;

&lt;P&gt;Network Information:&lt;BR /&gt;
    Client Address:     ::ffff:XX.XX.XX.XX&lt;BR /&gt;
    Client Port:        51806&lt;/P&gt;

&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 17:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55101#M10716</guid>
      <dc:creator>diegosainz</dc:creator>
      <dc:date>2013-06-04T17:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55102#M10717</link>
      <description>&lt;P&gt;There is a command called &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;REX&lt;/A&gt; that can be used at search time, or &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata"&gt;SEDCMD&lt;/A&gt; that can be used at index time. This can be used to replace the string in question. You should do this only if you are sure that you do not need the data. &lt;/P&gt;

&lt;P&gt;You can do this at search time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="answers-1370377923" | rex mode=sed "s/::ffff://g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or, you can do this at index time by setting an entry in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf

[answers-1370377923]
SEDCMD-remove_ffff = s/::ffff://g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps,&lt;/P&gt;

&lt;P&gt;-gc&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 20:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55102#M10717</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2013-06-04T20:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55103#M10718</link>
      <description>&lt;P&gt;I would also recommend here that this be done with a simple modification to Splunk_TA_Windows. &lt;/P&gt;

&lt;P&gt;In order to remove the ::ffff: from this field, you can create two new transforms and modify two extractions in the Splunk_TA_Windows. You need two because the Client_Address field is used for both src and src_ip in the Windows logs. &lt;/P&gt;

&lt;P&gt;Instructions are below:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Transformation for src_ip:&lt;/STRONG&gt; &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Start by making a new transformation&lt;/LI&gt;
&lt;LI&gt;Set the Name to: Client_Address_as_src_ip_modified&lt;/LI&gt;
&lt;LI&gt;Set the Regular expression to: ([\]+)?([^f:\n][^-].*)&lt;/LI&gt;
&lt;LI&gt;Set the Source_Key to: Client_Address&lt;/LI&gt;
&lt;LI&gt;Set the Format to: src_ip::"$2"&lt;/LI&gt;
&lt;LI&gt;Save the extraction. 
Note: Make sure the permissions for this are Global and also that the transformation goes into the Splunk_TA_Windows App. &lt;/LI&gt;
&lt;LI&gt;Go to Settings &amp;gt; Fields &amp;gt; Field extractions&lt;/LI&gt;
&lt;LI&gt;Find and modify the extraction named “source::*:Security : REPORT-src_ip_for_windows_security”&lt;/LI&gt;
&lt;LI&gt;Set the Extraction/Transform to “Source_Network_Address_as_src_ip,Client_Address_as_src_ip_modified”&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;STRONG&gt;Transformation for src:&lt;/STRONG&gt; &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Making another new transformation&lt;/LI&gt;
&lt;LI&gt;Set the Name to: Client_Address_as_src_modified&lt;/LI&gt;
&lt;LI&gt;Set the Regular expression to: ([\]+)?([^f:\n][^-].*)&lt;/LI&gt;
&lt;LI&gt;Set the Source_Key to: Client_Address&lt;/LI&gt;
&lt;LI&gt;Set the Format to: src::”$2"&lt;/LI&gt;
&lt;LI&gt;Save the extraction. 
Note: Make sure the permissions for this are Global and also that the transformation goes into the Splunk_TA_Windows App. &lt;/LI&gt;
&lt;LI&gt;Go to Settings &amp;gt; Fields &amp;gt; Field extractions&lt;/LI&gt;
&lt;LI&gt;Find and modify the extraction named “source::*:Security : REPORT-src_for_windows_security”&lt;/LI&gt;
&lt;LI&gt;Set the Extraction/Transform to “Source_Workstation_as_src,Workstation_Name_as_src,Caller_Machine_Name_as_src,Client_Machine_Name_as_src,Source_Network_Address_as_src,Client_Address_as_src_modified,ComputerName_as_src”&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55103#M10718</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2020-09-29T08:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55104#M10719</link>
      <description>&lt;P&gt;Hi, thank you this fix worked for me. Just to clarify as I am new to Splunk the Index time props.conf you are referring to is located at: $SPLUNK_HOME/etc/system/local. And the sourcetype asked about in this case is Windows Event Logs so my stanza looks like this: &lt;BR /&gt;
[WinEventLog]&lt;BR /&gt;
 SEDCMD-remove_ffff = s/::ffff://g &lt;BR /&gt;
I realized that this works only after Splunk has been restarted.&lt;BR /&gt;
Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55104#M10719</guid>
      <dc:creator>agadayev</dc:creator>
      <dc:date>2020-09-29T09:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55105#M10720</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to get the same fixed and am relatively new to Splunk as well...  I was wondering if this change should be done at the indexer, forwarder or search head level?&lt;/P&gt;

&lt;P&gt;Please advise at your convenience.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 22:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55105#M10720</guid>
      <dc:creator>lmedina</dc:creator>
      <dc:date>2016-10-11T22:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55106#M10721</link>
      <description>&lt;P&gt;Hi there - If you are doing this permanently, then it is done at index time on your indexer layer. In that case, you will configure this via the props.conf entry.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; #props.conf
 [answers-1370377923]
 SEDCMD-remove_ffff = s/::ffff://g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf"&gt;docs&lt;/A&gt;. (Look for SEDCMD)&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;If this is a general context obfuscation, where the end result is presented as a non-drillable component, then it can be done at search time - it would just be part of your search syntax.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="answers-1370377923" | rex mode=sed "s/::ffff://g"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;See the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex"&gt;docs&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 01:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55106#M10721</guid>
      <dc:creator>Gilberto_Castil</dc:creator>
      <dc:date>2016-10-12T01:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55107#M10722</link>
      <description>&lt;P&gt;Use a source key of IpAddress if you're ingesting those logs as sourcetype XmlWinEventLog:Security&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 05:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55107#M10722</guid>
      <dc:creator>gf13579</dc:creator>
      <dc:date>2018-03-09T05:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55108#M10723</link>
      <description>&lt;P&gt;Be very careful with using this sample rex or SEDCMD, as it will also blow away this string inside a perfectly valid ipv6 address (e.g 2001:1337::ffff:1234:1). You probably want to adjust the regex such that it only strips the &lt;CODE&gt;::ffff:&lt;/CODE&gt; part when it occurs as a prefix to an ipv4 address.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 11:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55108#M10723</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-03-09T11:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55109#M10724</link>
      <description>&lt;P&gt;On Splunk Enterprise 7.2.1 with Splunk Add-on for Microsoft Windows 5.0.1 I solved problem in the following way:&lt;/P&gt;

&lt;P&gt;Create file $SPLUNK_HOME/etc/apps/Splunk_TA_windows/&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/Admin/Configurationfiledirectories" target="_blank"&gt;local&lt;/A&gt;/&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf" target="_blank"&gt;transforms.conf&lt;/A&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Client_Address_as_src]
SOURCE_KEY = Client_Address
REGEX = ([\\]+)?([^f:\n][^-].*)
FORMAT = src::"$2"

[Client_Address_as_src_ip]
SOURCE_KEY = Client_Address
REGEX = ([\\]+)?([^f:\n][^-].*)
FORMAT = src_ip::"$2"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55109#M10724</guid>
      <dc:creator>ozatsepin</dc:creator>
      <dc:date>2020-09-29T22:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55110#M10725</link>
      <description>&lt;P&gt;This worked perfectly for me - thx for posting&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55110#M10725</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2019-08-14T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove ::ffff: from logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55111#M10726</link>
      <description>&lt;P&gt;the SEDCMD-remove_ffff is already present and commented in Splunk_TA_windows version 6.0 (but dont change in default file)&lt;/P&gt;

&lt;P&gt;so you could just :&lt;BR /&gt;
create/update Splunk_TA_Windows/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog:Security]
SEDCMD-remove_ffff = s/::ffff://g

[source::WinEventLog:ForwardedEvents]
SEDCMD-remove_ffff = s/::ffff://g

[WMI:WinEventLog:Security]
SEDCMD-remove_ffff = s/::ffff://g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-ffff-from-logs/m-p/55111#M10726</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2020-09-30T01:43:46Z</dc:date>
    </item>
  </channel>
</rss>

