<?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 values or make them anonymous in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163526#M46432</link>
    <description>&lt;P&gt;we found the answer, we add and extra \s here sDeny(,\s|\s)&lt;BR /&gt;
before&lt;BR /&gt;
([)&lt;EM&gt;(\w+\s+)+=\sDeny(,|\s)&lt;BR /&gt;
after&lt;BR /&gt;
([)&lt;/EM&gt;(\w+\s+)+=\sDeny(,\s|\s)&lt;BR /&gt;
Thank you ,&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2014 17:05:35 GMT</pubDate>
    <dc:creator>celsohso</dc:creator>
    <dc:date>2014-08-01T17:05:35Z</dc:date>
    <item>
      <title>Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163516#M46422</link>
      <description>&lt;P&gt;I have a log that look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ReceivedPermissions&amp;gt;EMULATION = [ EMULATEANOTHERUSER = Deny ], APPLICATION = [ PRIV FILE FDIC CAS = Deny, SESSION CLEAN UP = Deny, PRIV FILE IRS IBFD = Deny, WEB HOSTED CLIENTID IPAD = Grant,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to remove all Deny(Eg: ORG PRINTER SELECT = Deny)&lt;/P&gt;

&lt;P&gt;On my transforms.conf I have&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[removedeny]
REGEX = ^([A-Za-z0-9\S\s]+\s=\sDeny,)$
FORMAT = $1$2
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On my props.conf I have&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REPORT-removedeny= removedeny
&lt;/CODE&gt;&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>Wed, 30 Jul 2014 13:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163516#M46422</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-07-30T13:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163517#M46423</link>
      <description>&lt;P&gt;See these links for masking your data (based on regex)&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/62374/anonymize-the-sensitive-data-no-gaurantee-in-splunk"&gt;http://answers.splunk.com/answers/62374/anonymize-the-sensitive-data-no-gaurantee-in-splunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/76825/anonymize-data-using-regex-transform"&gt;http://answers.splunk.com/answers/76825/anonymize-data-using-regex-transform&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163517#M46423</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163518#M46424</link>
      <description>&lt;P&gt;If we take this as sample log entry, what should be the expected output??&lt;BR /&gt;
Input:&lt;BR /&gt;
&lt;RECEIVEDPERMISSIONS&gt;EMULATION = [ EMULATEANOTHERUSER = Deny ], APPLICATION = [ PRIV FILE FDIC CAS = Deny, SESSION CLEAN UP = Deny, PRIV FILE IRS IBFD = Deny, WEB HOSTED CLIENTID IPAD = Grant,&lt;/RECEIVEDPERMISSIONS&gt;&lt;/P&gt;

&lt;P&gt;Output??&lt;BR /&gt;
&lt;RECEIVEDPERMISSIONS&gt;EMULATION WEB HOSTED CLIENTID IPAD = Grant,&lt;/RECEIVEDPERMISSIONS&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163518#M46424</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T17:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163519#M46425</link>
      <description>&lt;P&gt;Yes, the granted are the only ones I want to see as result,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:39:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163519#M46425</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-07-30T17:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163520#M46426</link>
      <description>&lt;P&gt;Give this a try. No transforms.conf change needed.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourceType]
..
Other configurations
..
SEDCMD-deny = s/(\[)*(\w+\s+)+=\sDeny(,|\s)//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried with following sample data and below that is the outpt I received.&lt;BR /&gt;
Sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ReceivedPermissions&amp;gt;EMULATION = [ EMULATEANOTHERUSER = Deny, SESSION CLEAN UP = Deny ], APPLICATION = [ PRIV FILE FDIC CAS = Deny, PRIV FILE IRS IBFD = Deny, WEB HOSTED CLIENTID IPAD = Grant,
&amp;lt;ReceivedPermissions&amp;gt;EMULATION = [ EMULATEANOTHERUSER = Deny ], APPLICATION = [ PRIV FILE FDIC CAS = Deny, SESSION CLEAN UP = Deny, PRIV FILE IRS IBFD = Deny, WEB HOSTED CLIENTID IPAD = Grant,
&amp;lt;ReceivedPermissions&amp;gt;TEST = [ EMULATEANOTHERUSER = Deny ], APPLICATION = [ PRIV FILE FDIC CAS = Deny, SESSION CLEAN UP = Deny, PRIV FILE IRS IBFD = Deny, WEB HOSTED CLIENTID IPAD = Grant ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output after SEDCMD:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ReceivedPermissions&amp;gt;TEST = [ ], APPLICATION = [ WEB HOSTED CLIENTID IPAD = Grant ]
&amp;lt;ReceivedPermissions&amp;gt;EMULATION = [ ], APPLICATION = [ WEB HOSTED CLIENTID IPAD = Grant,
&amp;lt;ReceivedPermissions&amp;gt;EMULATION = [ ], APPLICATION = [ WEB HOSTED CLIENTID IPAD = Grant, 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jul 2014 18:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163520#M46426</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T18:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163521#M46427</link>
      <description>&lt;P&gt;I was trying this same property when I got your message,&lt;BR /&gt;
it seems to be a much easier solution. I am testing your regex at this moment, it seems to be working much better then mine was, and yours is actually a lot simpler too.&lt;BR /&gt;
As soon as I finish my test I will let you know the results,&lt;/P&gt;

&lt;P&gt;Thanks a lot, you have been really helpful!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 18:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163521#M46427</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-07-30T18:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163522#M46428</link>
      <description>&lt;P&gt;It worked great!&lt;/P&gt;

&lt;P&gt;one thing though, I notice that your results did not have the big spaces that mine have. I think I might be able to fix that tweaking your regex. That is great man! &lt;/P&gt;

&lt;P&gt;EMULATION = [ ], APPLICATION = [          WEB HOSTED CLIENTID IPAD = Grant,     PRACINSIGHTPHONE = Grant, DESKTOP PRACLAW CORP = Grant,    KCALERT MONTHLY = Grant,             COINV ALERTS = Grant, ANNOTATIONS = Grant, DESKTOP PRACLAW EMP = Grant,       DESKTOP PRACLAW CAP = Grant, MYBI-          BLC ZONE = Grant,    KEYCITE ALERTS = Grant,   EMAIL DELIVERY = Grant,      TAX KPMG USER = Grant,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 18:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163522#M46428</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-07-30T18:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163523#M46429</link>
      <description>&lt;P&gt;Glad it helped. Let me know if there are any followup questions, else just mark the question answered.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163523#M46429</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T19:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163524#M46430</link>
      <description>&lt;P&gt;Two Question: Do you happen to know if:&lt;BR /&gt;
-As far as performance goes, is there any difference in change the Transforms.conf or, add only SEDCMD on props.conf ?&lt;BR /&gt;
-Also, the white spaces are related to Splunk way to deal with the Sed, or the regex need to be tweaked?&lt;/P&gt;

&lt;P&gt;“EMULATION = [ ], APPLICATION = [          WEB HOSTED CLIENTID IPAD = Grant,     PRACINSIGHTPHONE = Grant, DESKTOP PRACLAW CORP = Grant,    KCALERT MONTHLY = Grant,             COINV ALERTS = Grant, ANNOTATIONS = Grant, DESKTOP PRACLAW EMP = Grant,       DESKTOP PRACLAW CAP = Grant, MYBI-          BLC ZONE = Grant,&lt;BR /&gt;&lt;BR /&gt;
”&lt;BR /&gt;
Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 16:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163524#M46430</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-08-01T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163525#M46431</link>
      <description>&lt;P&gt;Also, can this be test from the Splunk search page, so I can play with regex without being restarting splunk indexers&lt;BR /&gt;
SEDCMD-deny = s/([)*(\w+\s+)+=\sDeny(,|\s)//g&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 16:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163525#M46431</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-08-01T16:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163526#M46432</link>
      <description>&lt;P&gt;we found the answer, we add and extra \s here sDeny(,\s|\s)&lt;BR /&gt;
before&lt;BR /&gt;
([)&lt;EM&gt;(\w+\s+)+=\sDeny(,|\s)&lt;BR /&gt;
after&lt;BR /&gt;
([)&lt;/EM&gt;(\w+\s+)+=\sDeny(,\s|\s)&lt;BR /&gt;
Thank you ,&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 17:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163526#M46432</guid>
      <dc:creator>celsohso</dc:creator>
      <dc:date>2014-08-01T17:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf - Hide values or make them anonymous</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163527#M46433</link>
      <description>&lt;P&gt;For you first question, see this. Since you're doing multiple remove, SEDCMD is your guy.&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/9456/performance-difference-between-using-sedcmd-and-older-regextransforms-method"&gt;http://answers.splunk.com/answers/9456/performance-difference-between-using-sedcmd-and-older-regextransforms-method&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Great job resolving the extra spaces issue. I was getting that too but somehow didn't show when pasted the result here.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 18:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-Hide-values-or-make-them-anonymous/m-p/163527#M46433</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-01T18:13:15Z</dc:date>
    </item>
  </channel>
</rss>

