<?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: Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182977#M36668</link>
    <description>&lt;P&gt;I have the same problem. &lt;BR /&gt;
I am indexing  CSV files and every field maintains its data even when the _raw field is getting anonymized.&lt;/P&gt;

&lt;P&gt;Is there any way to  auto extract csv (not using explicit extraction) and at the same time be able to anonymize some of the fields?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2014 17:33:57 GMT</pubDate>
    <dc:creator>serpin</dc:creator>
    <dc:date>2014-11-13T17:33:57Z</dc:date>
    <item>
      <title>Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182972#M36663</link>
      <description>&lt;P&gt;Hallo, &lt;BR /&gt;
I am in the need of anonymizing the second column in a tab-separated log file.&lt;BR /&gt;
I use the method described in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/Anonymizedatausingconfigurationfiles#Anonymize_data_with_a_regular_expression_transform"&gt;"Anonymize Data"&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[abcdef]
REGEX = ^([^\t]*\t)[^\t]*somePatternToReplace[^\t]*(\t.*)$
FORMAT = $1TestReplacementString$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[someSourceType]
TRANSFORMS-xyz = abcdef
FIELD_DELIMITER = \t
FIELD_NAMES = "Field1", "Field2", "Field3", ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The raw data is processed and indexed as expected, i.e. I see "TestReplacementString" in the search for field _raw. However, the field "Field2" still has the original, unanonymized value. Is there a way I can have that value also affected by anonymization?&lt;/P&gt;

&lt;P&gt;Adding this to transforms.conf (and including in props.conf) does not make a difference either:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fieldSpecific]
REGEX = (.*)something.*
FORMAT = $1TestReplaceField
DEST_KEY = Field2

[accepted_keys]
name = Field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for your help in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2014 11:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182972#M36663</guid>
      <dc:creator>keywork</dc:creator>
      <dc:date>2014-10-27T11:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182973#M36664</link>
      <description>&lt;P&gt;Some buzzwords as a direction for further investigation are also appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 08:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182973#M36664</guid>
      <dc:creator>keywork</dc:creator>
      <dc:date>2014-10-28T08:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182974#M36665</link>
      <description>&lt;P&gt;I read that FIELD_NAMES is used at search time field extraction. I assume that for search time field extraction, the _raw field is used as "the source data". With _raw having successfully being anonymized, I wonder why I still get the original, unanonymized value when using search.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 11:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182974#M36665</guid>
      <dc:creator>keywork</dc:creator>
      <dc:date>2014-10-28T11:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182975#M36666</link>
      <description>&lt;P&gt;I found out that FIELD_NAMES applies during index time, so not surprising anymore that anonymization doesn't work.&lt;BR /&gt;
I changed field extraction using EXTRACT- command. This allows me to use SEDCMD- command to modify data at indexing time.&lt;BR /&gt;
The problem is now: i can provide several SED commands at once, but apparently these are executed somehow in parallel. However, what I need is to implement a mapping, i.e. some kind of case-statement: If field_2 value matches regex_1, then set this value for field_2; if field_2 value matches regex_2, then set that value for field_2, and so on. Particularly, I need a default value for field_2 if none of my regular expressions defined in the SED commands matches. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182975#M36666</guid>
      <dc:creator>keywork</dc:creator>
      <dc:date>2020-09-28T18:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182976#M36667</link>
      <description>&lt;P&gt;I found out that the SED commands are processed sequentially by the order i write them down in props.conf. That way I can provide a default replacement as the last SED command.&lt;BR /&gt;
My SEDCMD-xyz line in props.conf has about 35,000 characters since I'm checking about 450 conditions. It works fine; indexing data takes significantly longer, but still OK. If someone has a better idea, please let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 13:39:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182976#M36667</guid>
      <dc:creator>keywork</dc:creator>
      <dc:date>2014-10-29T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my configuration to anonymize data not working for fields named by FIELD_NAMES in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182977#M36668</link>
      <description>&lt;P&gt;I have the same problem. &lt;BR /&gt;
I am indexing  CSV files and every field maintains its data even when the _raw field is getting anonymized.&lt;/P&gt;

&lt;P&gt;Is there any way to  auto extract csv (not using explicit extraction) and at the same time be able to anonymize some of the fields?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2014 17:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-configuration-to-anonymize-data-not-working-for-fields/m-p/182977#M36668</guid>
      <dc:creator>serpin</dc:creator>
      <dc:date>2014-11-13T17:33:57Z</dc:date>
    </item>
  </channel>
</rss>

