<?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: SEDCMD a field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-a-field/m-p/413485#M73149</link>
    <description>&lt;P&gt;Transforms.conf must be used for the extracted field, and SEDCMD for _raw.&lt;/P&gt;

&lt;P&gt;See here for details. Waaay at the bottom. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/739964/need-sedcmd-help.html"&gt;https://answers.splunk.com/answers/739964/need-sedcmd-help.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 19:29:24 GMT</pubDate>
    <dc:creator>JDukeSplunk</dc:creator>
    <dc:date>2019-04-18T19:29:24Z</dc:date>
    <item>
      <title>SEDCMD a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-a-field/m-p/413484#M73148</link>
      <description>&lt;P&gt;I'm hoping what I want to do exists.&lt;/P&gt;

&lt;P&gt;I've reviewed props.conf.spec and &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Data/Anonymizedata"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Data/Anonymizedata&lt;/A&gt;. I can't find where the documentation says that it is possible to execute a SEDCMD in props.conf against a specific field. We have a csv file that the forwarder assigns fields to from the csv header using it's local props.conf for the sourcetype.&lt;/P&gt;

&lt;P&gt;Forwarders props.conf, which is standard csv boilerplate. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hdfax:prod]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = csv
KV_MODE = none
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Structured
description = Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So those fields are presented to the indexer from the forwarder. If I wanted to anonymize a field named "MemberID" could I do something like this in the indexers props.conf?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hdfax:prod]
SEDCMD-MEMID &amp;lt;MemberID&amp;gt; = s/\d+/XX-REDACTED-XX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or will I have to regex _raw on the indexers /system/local/props.conf?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-MEMID = s/SOME_LONG_REGEX/XX-REDACTED-XX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would be fine if it were not CSV or the string I wanted to anonymise had some precursor to it like MemberID=1111111. As it stands because it is csv all that exists is a structure with commas separating them. &lt;/P&gt;

&lt;P&gt;Ugh..&lt;BR /&gt;
JD&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 18:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-a-field/m-p/413484#M73148</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2019-04-11T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: SEDCMD a field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-a-field/m-p/413485#M73149</link>
      <description>&lt;P&gt;Transforms.conf must be used for the extracted field, and SEDCMD for _raw.&lt;/P&gt;

&lt;P&gt;See here for details. Waaay at the bottom. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/739964/need-sedcmd-help.html"&gt;https://answers.splunk.com/answers/739964/need-sedcmd-help.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SEDCMD-a-field/m-p/413485#M73149</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2019-04-18T19:29:24Z</dc:date>
    </item>
  </channel>
</rss>

