<?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 Apply OpenPipeline DQL Data Masking Rules Across All Attributes in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Apply-OpenPipeline-DQL-Data-Masking-Rules-Across-All-Attributes/m-p/264084#M1495</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We use DQL rules for cardholder data masking in Open Pipeline through combinations of string functions - &lt;FONT face="courier new,courier"&gt;replacePatterns&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;replaceString&lt;/FONT&gt; - similar to the snippet below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fieldsAdd a = replacePattern(content,
&amp;lt;&amp;lt;Masing Rule&amp;gt;&amp;gt;)
| fieldsAdd b = iCollectArray(replaceString(b[], " ", ""))
| fieldsAdd b = iCollectArray(concat(substring(b[], from:0, to:6), "******", substring(b[], from:12)))
| fieldsAdd b = arrayFlatten(array(b, null))
| fieldsAdd c = splitString(a, "&amp;lt;Masked_credit_card&amp;gt;")
| fieldsAdd d = unescape(toString(iCollectArray(concat(c[], b[]))))
| fieldsAdd content = replaceString(substring(d, from:2, to: -2),"""", """", "")
| fieldsRemove a, b, c, d&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, its limitation is where the rule can only be applied for specific attributes - i.e.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;content&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fieldsAdd a = replacePattern(content,
...
| fieldsAdd content = replaceString(substring(d, from:2, to: -2),"""", """", "")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would I iterate the same DQL rule to all other attributes than just&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;content&lt;/FONT&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 12:10:00 GMT</pubDate>
    <dc:creator>bobmacks</dc:creator>
    <dc:date>2025-12-17T12:10:00Z</dc:date>
    <item>
      <title>Apply OpenPipeline DQL Data Masking Rules Across All Attributes</title>
      <link>https://community.dynatrace.com/t5/DQL/Apply-OpenPipeline-DQL-Data-Masking-Rules-Across-All-Attributes/m-p/264084#M1495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We use DQL rules for cardholder data masking in Open Pipeline through combinations of string functions - &lt;FONT face="courier new,courier"&gt;replacePatterns&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;replaceString&lt;/FONT&gt; - similar to the snippet below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fieldsAdd a = replacePattern(content,
&amp;lt;&amp;lt;Masing Rule&amp;gt;&amp;gt;)
| fieldsAdd b = iCollectArray(replaceString(b[], " ", ""))
| fieldsAdd b = iCollectArray(concat(substring(b[], from:0, to:6), "******", substring(b[], from:12)))
| fieldsAdd b = arrayFlatten(array(b, null))
| fieldsAdd c = splitString(a, "&amp;lt;Masked_credit_card&amp;gt;")
| fieldsAdd d = unescape(toString(iCollectArray(concat(c[], b[]))))
| fieldsAdd content = replaceString(substring(d, from:2, to: -2),"""", """", "")
| fieldsRemove a, b, c, d&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, its limitation is where the rule can only be applied for specific attributes - i.e.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;content&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fieldsAdd a = replacePattern(content,
...
| fieldsAdd content = replaceString(substring(d, from:2, to: -2),"""", """", "")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How would I iterate the same DQL rule to all other attributes than just&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;content&lt;/FONT&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:10:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Apply-OpenPipeline-DQL-Data-Masking-Rules-Across-All-Attributes/m-p/264084#M1495</guid>
      <dc:creator>bobmacks</dc:creator>
      <dc:date>2025-12-17T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Applying OpenPipeline DQL data masking rule to all attributes</title>
      <link>https://community.dynatrace.com/t5/DQL/Apply-OpenPipeline-DQL-Data-Masking-Rules-Across-All-Attributes/m-p/291689#M2904</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/73833"&gt;@bobmacks&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what works best for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:09:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Apply-OpenPipeline-DQL-Data-Masking-Rules-Across-All-Attributes/m-p/291689#M2904</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2025-12-17T12:09:32Z</dc:date>
    </item>
  </channel>
</rss>

