<?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: Help Using Props and/or Transforms to Mask sensitive field data at index time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336731#M62201</link>
    <description>&lt;P&gt;unforunately, this is not an ideal solution to my issue.. these logs are being monitored and sent to my heavy forwarder and then my indexer.  I'd like to use props and/or transforms on the heavy forwarder to mask the sensitive data.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2018 03:28:13 GMT</pubDate>
    <dc:creator>johnward4</dc:creator>
    <dc:date>2018-01-27T03:28:13Z</dc:date>
    <item>
      <title>Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336727#M62197</link>
      <description>&lt;P&gt;I have sensitive data that I'm attempting to mask at index time and I can't quite get the props and/or transforms to work.  Please help &lt;/P&gt;

&lt;P&gt;The sourcetype is :  JMRequests&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pw-mask]
SEDCMD-password = s/password:(\w|\d|\D)+)/password: XXXXXXXX/
TRANSFORMS = pw-mask
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pw-mask]
REGEX = password(\w|\d|\D)+)
FORMAT = password:$1XXXXXXXX
DEST_KEY = _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk is auto extracting the raw log data into fields successfully and the field that holds sensitive data is 'password'.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 02:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336727#M62197</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T02:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336728#M62198</link>
      <description>&lt;P&gt;Can you provide sample event and tell what do you want to mask in that sample event?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 03:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336728#M62198</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T03:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336729#M62199</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;2018-01-24 02:08:26,114 [5756] INFO  - REQUEST (ExecuteEx, xml inline): &amp;lt;Operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" username="kchee" password="password1" clientapplicationid="00000000-0000-0000-0000-000000000000" parallelexecution="false" languagecode="en" xmlns=""&amp;gt;&amp;lt;Operation type="GetProjection"&amp;gt;&amp;lt;GetProjection&amp;gt;&amp;lt;Incidents&amp;gt;&amp;lt;Columns&amp;gt;&amp;lt;Col name="c0" mapping="UnRead" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c1" mapping="MessageStat.HasMessageUnread" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c2" mapping="ID" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c3" mapping="TicketPriority.ForeColor" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c4" mapping="KnownIssue" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c5" mapping="Solicits" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c6" mapping="TicketStat.ChildrenCount" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c7" mapping="TicketStat.ConversationItemCount" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c8" mapping="TicketStat.BlockedBy" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c9" mapping="TicketStat.AttachmentCount" format="" culture="" maxlength="0" regex="" /&amp;gt;&amp;lt;Col name="c10" mapping="Date" format="" culture="" maxlength="0" regex="" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jan 2018 03:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336729#M62199</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336730#M62200</link>
      <description>&lt;P&gt;hey try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval raw="2018-01-24 02:08:26,114 [5756] INFO  - REQUEST (ExecuteEx, xml inline): &amp;lt;Operations xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" username=\"jward\" password=\"pass$%$##@word9abc%#$$%@#$\" clientapplicationid=\"00000000-0000-0000-0000-000000000000\" parallelexecution=\"false\" languagecode=\"en\" xmlns=\"\"&amp;gt;&amp;lt;Operation type=\"GetProjection\"&amp;gt;&amp;lt;GetProjection&amp;gt;&amp;lt;Incidents&amp;gt;&amp;lt;Columns&amp;gt;&amp;lt;Col name=\"c0\" mapping=\"UnRead\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c1\" mapping=\"MessageStat.HasMessageUnread\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c2\" mapping=\"ID\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c3\" mapping=\"TicketPriority.ForeColor\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c4\" mapping=\"KnownIssue\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c5\" mapping=\"Solicits\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c6\" mapping=\"TicketStat.ChildrenCount\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c7\" mapping=\"TicketStat.ConversationItemCount\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c8\" mapping=\"TicketStat.BlockedBy\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c9\" mapping=\"TicketStat.AttachmentCount\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;&amp;lt;Col name=\"c10\" mapping=\"Date\" format=\"\" culture=\"\" maxlength=\"0\" regex=\"\" /&amp;gt;" | rex field=raw mode=sed "s/password=\"([^\"]+)/password=\"XXXXXXX/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just write this is in props.conf . you do not need to write transforms.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[JMRequests]
SEDCMD-password = s/password=\"([^\"]+)/password=\"XXXXXXX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then restart the server.&lt;BR /&gt;
For more information, have a look at this doc&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Data/Anonymizedata#Replace_strings_with_regular_expression_match"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Data/Anonymizedata#Replace_strings_with_regular_expression_match&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If this does not work then try putting &lt;CODE&gt;&amp;lt;your_source&amp;gt;&lt;/CODE&gt; instead of &lt;CODE&gt;JMRequests&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 03:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336730#M62200</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T03:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336731#M62201</link>
      <description>&lt;P&gt;unforunately, this is not an ideal solution to my issue.. these logs are being monitored and sent to my heavy forwarder and then my indexer.  I'd like to use props and/or transforms on the heavy forwarder to mask the sensitive data.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 03:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336731#M62201</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T03:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336732#M62202</link>
      <description>&lt;P&gt;yes i am telling you write that only this is just a cross-check if regex is working as expected or not! I have changed my answer pls check and follow the same&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 03:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336732#M62202</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T03:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336733#M62203</link>
      <description>&lt;P&gt;The regex works in your first example but the props doesn't appear to work.  My sourcetype for the log is sourcetype=JMRequests&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 04:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336733#M62203</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T04:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336734#M62204</link>
      <description>&lt;P&gt;checklist:&lt;BR /&gt;
1) have you restarted the server after configurtaion? &lt;BR /&gt;
2) Are you doing this configuration on both forwarder and indexer? &lt;BR /&gt;
If above checklist is "YES" for both question then&lt;BR /&gt;
give  me the artifacts of props..conf and tell me the path of props.conf&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 04:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336734#M62204</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T04:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336735#M62205</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Edit or create a copy of props.conf in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt; on both &lt;CODE&gt;indexer and forwarder&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Create a props.conf stanza that uses SEDCMD to indicate a sed script:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[JMRequests]
 SEDCMD-password = s/password=\"([^\"]+)/password=\"XXXXXXX/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;2. Restart the server&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Follow above carefully and do not skip any step. and write the props.conf in the path given above only&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 05:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336735#M62205</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T05:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336736#M62206</link>
      <description>&lt;P&gt;Okay I think we're getting really close but the data is showing as \"XXXXXXX" now and it is not replacing null values as XXXXXXXX.&lt;/P&gt;

&lt;P&gt;Also, the data has been indexing with clear text password values for a few weeks now, what is the best practice for masking the password values for already indexed data&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 06:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336736#M62206</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T06:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336737#M62207</link>
      <description>&lt;P&gt;show me the event of null password.&lt;/P&gt;

&lt;P&gt;No you can't change data which is already index..you have reindex the file again.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 07:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336737#M62207</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T07:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336738#M62208</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;2018-01-27 08:26:26,119 [2640] INFO  - REQUEST (ExecuteEx, xml inline): &amp;lt;Operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" username="jward" password="" clientapplicationid="00000000-0000-0000-0000-000000000000" parallelexecution="false" languagecode="en" xmlns=""&amp;gt;&amp;lt;Operation type=""&amp;gt;&amp;lt;LockObject&amp;gt;&amp;lt;LockObjectRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;gt;&amp;lt;ObjectID&amp;gt;T52383G&amp;lt;/ObjectID&amp;gt;&amp;lt;ObjectType&amp;gt;Ticket&amp;lt;/ObjectType&amp;gt;&amp;lt;/LockObjectRequest&amp;gt;&amp;lt;/LockObject&amp;gt;&amp;lt;/Operation&amp;gt;&amp;lt;/Operations&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jan 2018 07:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336738#M62208</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T07:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336739#M62209</link>
      <description>&lt;P&gt;okay try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [JMRequests]
 SEDCMD-password = s/password=([^\s]+)/password="XXXXXXX"/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will be for both!.&lt;/P&gt;

&lt;P&gt;accept my answer if this works for you.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 07:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336739#M62209</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-27T07:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help Using Props and/or Transforms to Mask sensitive field data at index time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336740#M62210</link>
      <description>&lt;P&gt;AWESOME! it works, thank you a ton&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 08:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-Using-Props-and-or-Transforms-to-Mask-sensitive-field-data/m-p/336740#M62210</guid>
      <dc:creator>johnward4</dc:creator>
      <dc:date>2018-01-27T08:25:40Z</dc:date>
    </item>
  </channel>
</rss>

