<?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: Transforms not replacing original value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-replacing-original-value/m-p/330325#M61240</link>
    <description>&lt;P&gt;Try this for your transforms.conf entry&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[taxiMask]
REGEX = (?m)^(.*)(\w{120})(\w{8})(.*)$
FORMAT = $1$3$4
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Jun 2017 15:11:50 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-06-08T15:11:50Z</dc:date>
    <item>
      <title>Transforms not replacing original value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-replacing-original-value/m-p/330324#M61239</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a CSV in which I am attempting to shorten a 128 character string down to the last 8 characters. I used the following configuration in transforms/props:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[taxi_csv]&lt;BR /&gt;
DATETIME_CONFIG =&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
category = Structured&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
description = Comma-separated value format. Set header and other settings in "D$&lt;BR /&gt;
TIMESTAMP_FIELDS = Trip Start Timestamp&lt;BR /&gt;
TZ = America/Chicago&lt;BR /&gt;
TRANSFORM-mask = taxiMask&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[taxiMask]&lt;BR /&gt;
REGEX = (\w{120})(\w{8})&lt;BR /&gt;
FORMAT = "Taxi ID"::$2&lt;BR /&gt;
WRITE_META = true&lt;BR /&gt;
SOURCE_KEY = field:"Taxi ID"&lt;BR /&gt;
DEST_KEY = _raw&lt;/P&gt;

&lt;P&gt;However, the resulting indexed data contains both the original string and the shortened string as two separate values in the same field. What configuration change can I make to replace the original value with the shortened string?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-replacing-original-value/m-p/330324#M61239</guid>
      <dc:creator>thard_splunk</dc:creator>
      <dc:date>2020-09-29T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms not replacing original value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-replacing-original-value/m-p/330325#M61240</link>
      <description>&lt;P&gt;Try this for your transforms.conf entry&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[taxiMask]
REGEX = (?m)^(.*)(\w{120})(\w{8})(.*)$
FORMAT = $1$3$4
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2017 15:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transforms-not-replacing-original-value/m-p/330325#M61240</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-08T15:11:50Z</dc:date>
    </item>
  </channel>
</rss>

