<?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>question Re: How do I use ReplaceText processor to mask a portion of all the IP addresses found in a multi-line input FlowFile's content in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110834#M54718</link>
    <description>&lt;P&gt;Try this with a ReplaceText processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12570-zgzja.png" style="width: 1164px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23297i2E4872615B12AB2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12570-zgzja.png" alt="12570-zgzja.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the complete Search Value property:&lt;/P&gt;&lt;P&gt;((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34908"&gt;@anshuman&lt;/a&gt; Ghosh&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 11:24:57 GMT</pubDate>
    <dc:creator>Wynner</dc:creator>
    <dc:date>2019-08-19T11:24:57Z</dc:date>
    <item>
      <title>How do I use ReplaceText processor to mask a portion of all the IP addresses found in a multi-line input FlowFile's content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110832#M54716</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have a requirement to anonymize IP address. So we would identify IP address and replace the last part with some arbitrary value.&lt;/P&gt;&lt;P&gt;We have tried using the following regex for that (with "Regex Replace" for replacement strategy, "Line-by-Line" as evaluation mode)&lt;/P&gt;&lt;P&gt;(1) \\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}&lt;/P&gt;&lt;P&gt;(2) ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$&lt;/P&gt;&lt;P&gt;(3) ((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)&lt;/P&gt;&lt;P&gt;None of this works.&lt;/P&gt;&lt;P&gt;Can you help me with the right value of regex we can use and the replacement value as well.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 01:03:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110832#M54716</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-17T01:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use ReplaceText processor to mask a portion of all the IP addresses found in a multi-line input FlowFile's content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110833#M54717</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/16111/anshumanghosh.html"&gt;@Anshuman Ghosh&lt;/A&gt;  I posted your question here for you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 01:06:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110833#M54717</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-17T01:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use ReplaceText processor to mask a portion of all the IP addresses found in a multi-line input FlowFile's content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110834#M54718</link>
      <description>&lt;P&gt;Try this with a ReplaceText processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12570-zgzja.png" style="width: 1164px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23297i2E4872615B12AB2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12570-zgzja.png" alt="12570-zgzja.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the complete Search Value property:&lt;/P&gt;&lt;P&gt;((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)).((?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/34908"&gt;@anshuman&lt;/a&gt; Ghosh&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:24:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110834#M54718</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2019-08-19T11:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use ReplaceText processor to mask a portion of all the IP addresses found in a multi-line input FlowFile's content</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110835#M54719</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/16111/anshumanghosh.html"&gt;@Anshuman Ghosh&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The Search Value Regex above has 4 capture groups from a valid IP address.  Each capture group can then be referenced in the replacement Value as $1, $2, $3, and/or $4.    In the example above the replacement for each found valid IP is still the first two numbers followed by ".x.x".  You can of course change the replacement value to whatever meets your specific needs.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 01:11:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-use-ReplaceText-processor-to-mask-a-portion-of-all/m-p/110835#M54719</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2017-02-17T01:11:34Z</dc:date>
    </item>
  </channel>
</rss>

