<?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.conf - Hide sensitive data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627352#M217998</link>
    <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here in this case, event_name would be any random events.&lt;/P&gt;&lt;P&gt;For example, it could be viewed patient data in registration, view patient, search analyser etc.&lt;/P&gt;&lt;P&gt;Here event_name should accept any string and I would want a regex to srub the data within () after event_name.&lt;/P&gt;&lt;P&gt;viewed patient data in registration(&lt;SPAN&gt;XXTEST, ORANGE CRUSH)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;view patient(XXTEST)&lt;/P&gt;&lt;P&gt;search analyser (YYTEST, TEST)&lt;/P&gt;&lt;P&gt;Could you please help me on Regex for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 13:26:59 GMT</pubDate>
    <dc:creator>poojithavasanth</dc:creator>
    <dc:date>2023-01-17T13:26:59Z</dc:date>
    <item>
      <title>How to achieve hiding sensitive data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627344#M217992</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a log that look like this:&lt;/P&gt;
&lt;P&gt;Here each fields as its own field name, and&amp;nbsp;viewed patient data in registration&lt;FONT color="#FF0000"&gt;(XXTEST, ORANGE CRUSH) &lt;/FONT&gt;&lt;FONT color="#000000"&gt;here is event_name. (Captured group to be used.)&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;0000|2019-01-07T14:20:12.000000Z|patientid|lastname, firstname|personlastname|M|middelname||PIEIGHT||MRN||Viewed|viewed patient data in registration&lt;FONT color="#FF0000"&gt;(XXTEST, ORANGE CRUSH)&lt;/FONT&gt;|00000||&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The one in red should be removed as it is sensitive patient data, for example&amp;nbsp;(XXTEST, ORANGE CRUSH)&amp;nbsp;should be removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;transforms.conf I have.&lt;/P&gt;
&lt;PRE&gt;[removedata]&lt;BR /&gt;REGEX = ^(?:[^\|\n]|){13}(?P&amp;lt;event_name&amp;gt;[^\|]+)([^)])&lt;/PRE&gt;
&lt;P&gt;On my props.conf I have&lt;/P&gt;
&lt;PRE&gt;REPORT-removedata= removedata&lt;/PRE&gt;
&lt;P&gt;But it is still not working: Do I need to use the field name, or change my regex? Am I applying the proper user of Transform?&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 20:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627344#M217992</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-01-17T20:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide sensitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627348#M217995</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250310"&gt;@poojithavasanth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;following the instructions at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Anonymizedata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Data/Anonymizedata&lt;/A&gt;&amp;nbsp;you can:&lt;/P&gt;&lt;P&gt;Substitute characters in events with a sed script in props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your_sourcetype&amp;gt;]
SEDCMD-sensitive_data = s/viewed patient data in registration\([^\)]+\)/viewed patient data in registration\(xxx\)/g&lt;/LI-CODE&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;in props.conf&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your_sourcetype&amp;gt;]
TRANSFORMS-anonymize = anonymizer&lt;/LI-CODE&gt;&lt;P&gt;and in transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[anonymizer]
REGEX = viewed patient data in registration\(([^\)]+)\)
FORMAT = viewed patient data in registration\($1\)
DEST_KEY = _raw&lt;/LI-CODE&gt;&lt;P&gt;I usually use SEDCMD.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627348#M217995</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-17T13:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide sensitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627352#M217998</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here in this case, event_name would be any random events.&lt;/P&gt;&lt;P&gt;For example, it could be viewed patient data in registration, view patient, search analyser etc.&lt;/P&gt;&lt;P&gt;Here event_name should accept any string and I would want a regex to srub the data within () after event_name.&lt;/P&gt;&lt;P&gt;viewed patient data in registration(&lt;SPAN&gt;XXTEST, ORANGE CRUSH)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;view patient(XXTEST)&lt;/P&gt;&lt;P&gt;search analyser (YYTEST, TEST)&lt;/P&gt;&lt;P&gt;Could you please help me on Regex for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627352#M217998</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-01-17T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide sensitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627353#M217999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250310"&gt;@poojithavasanth&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you see my first answer, you can find the SEDCMD command with the regex to replace the sensitive data with "XXX" or another string you like.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627353#M217999</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-17T13:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide sensitive data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627354#M218000</link>
      <description>&lt;P&gt;The first answer replaces (XXX) or any string I would want. I accept.&lt;/P&gt;&lt;P&gt;However, I would have random characters before the sensitive data and not a specified character.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exmaple 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;0000|2019-01-07T14:20:12.000000Z|xxx|xxx, xxxx|xxx|M|xxx||PIEIGHT||xxx||Viewed|&lt;FONT color="#FF6600"&gt;viewed patient data in registration&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#ff0000"&gt;(XXTEST, ORANGE CRUSH)&lt;/FONT&gt;&lt;SPAN&gt;|00000||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example 2) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1111|2010-01-07T14:20:12.000000Z|xxx|xxx, lastname|yyy|M|xxx||PIEIGHT||xxx||&lt;FONT color="#FF6600"&gt;&lt;FONT color="#000000"&gt;error&lt;/FONT&gt;|view patient(XXTEST)&lt;/FONT&gt;|00000||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example 3) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1234|1999-01-07T14:20:12.000000Z|xxx|xxx, xxxx|xxx|M|xxx||PIEIGHT||xxx||notviewed|&lt;FONT color="#FF6600"&gt;search analyser (YYTEST, TEST)&lt;/FONT&gt;|00000||&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;a) Fields are separated using | (pipe)&lt;/P&gt;&lt;P&gt;b) The string before (XXX) would be named as event_name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;c) Should we use captured group for building a regex?&lt;/P&gt;&lt;P&gt;Let me know if you would need any additional info.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-achieve-hiding-sensitive-data/m-p/627354#M218000</guid>
      <dc:creator>poojithavasanth</dc:creator>
      <dc:date>2023-01-17T13:49:22Z</dc:date>
    </item>
  </channel>
</rss>

