<?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: [Q] - How to mask IPv6 on ingestion in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/252211#M1101</link>
    <description>&lt;P&gt;Thank you this works a treat&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 07:33:07 GMT</pubDate>
    <dc:creator>mark_forrester</dc:creator>
    <dc:date>2024-08-01T07:33:07Z</dc:date>
    <item>
      <title>[Q] - How to mask IPv6 on ingestion</title>
      <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251717#M1088</link>
      <description>&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;I'm trying to mask a IPv6 address on log ingestion but struggling to get the commad right&lt;BR /&gt;&lt;BR /&gt;I find the IPv6 in the logs using the following command&lt;BR /&gt;// detect ip&lt;BR /&gt;| parse content, "LD IPADDR:ip LD"&lt;BR /&gt;| fieldsAdd ip = if(ipIsPublic(ip), ip, else: null)&lt;BR /&gt;&lt;BR /&gt;However when trying to mask using a similar command I get the below error, can anyone advise the right command to mask a IPv6 detected string in a log entry.&lt;BR /&gt;&lt;BR /&gt;USING(INOUT content)&lt;BR /&gt;| PARSE (content,"LD IPADDR:ip LD")&lt;BR /&gt;| FIELDS_ADD(content: REPLACE_PATTERN(content, ip,"*** DT MASKING ***"))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mark_forrester_0-1721993998283.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21410i623881E9EC46554B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mark_forrester_0-1721993998283.png" alt="mark_forrester_0-1721993998283.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 11:40:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251717#M1088</guid>
      <dc:creator>mark_forrester</dc:creator>
      <dc:date>2024-07-26T11:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: [Q] - How to mask IPv6 on ingestion</title>
      <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251733#M1089</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe, can you share some logs lines content where you want to extract that information?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 14:55:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251733#M1089</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2024-07-26T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Q] - How to mask IPv6 on ingestion</title>
      <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251769#M1091</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17999"&gt;@mark_forrester&lt;/a&gt;&amp;nbsp; Hope it helps&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_0-1722027559099.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21419iD3D47014B97BFF00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_0-1722027559099.png" alt="DanielS_0-1722027559099.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is not ingestion but does the same job&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 21:00:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251769#M1091</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2024-07-26T21:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: [Q] - How to mask IPv6 on ingestion</title>
      <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251807#M1093</link>
      <description>&lt;P&gt;Here is an edited sample content output in DT&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35788"&gt;@DanielS&lt;/a&gt;&amp;nbsp;your example fails on this example as no matches found.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN class=""&gt;"log-type"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"access"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"domain"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"@domain_name@"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"time"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"2024-07-29T08:03:53.435Z"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"process"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"582"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"filename"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"/var/www/html/rb_bf61376cao"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"remoteIP"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"2a00:2a00:6416:5d01:51bb:1d00:e019:92c1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"x-forwarded-for"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"host"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;A href="http://www.ourdomain.co.uk" target="_blank" rel="noopener"&gt;www.ourdomain.co.uk&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"request"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"/rb_bf61376cao"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"query"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"?type=js3&amp;amp;sn=v_4_srv_1_sn_89E82F0035A9458ED42E462151D39F6F_mvisitor_1724274919_msn_4-2D0_perc_100000_ol_0_mul_1_app-3Afc8a255d717e7ed8_1_rcs-3Acss_0&amp;amp;svrid=1&amp;amp;flavor=post&amp;amp;vi=PDHUTTNIVUULRVNDHPMLWCCVTKRBRRKR-0&amp;amp;modifiedSince=1722019465728&amp;amp;rf=https%3A%2F%2Fwww.ourdomain.co.uk%2Fpubdeals%3Futm_source%3Dsizzlapp%26utm_medium%3Dapp%23%2F&amp;amp;bp=3&amp;amp;app=fc8a255d717e7ed8&amp;amp;crc=3798105690&amp;amp;en=l3f8ysai&amp;amp;end=1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"method"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;SPAN class=""&gt;POST&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"200"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"userAgent"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Mozilla/5.0 (Linux; Android 14; SM-A528B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.134 Mobile Safari/537.36"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"referer"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;A href="https://www.ourdomain.co.uk/pubdeals?utm_source=sizzlapp&amp;amp;utm_medium=app" target="_blank" rel="noopener"&gt;https://www.ourdomain.co.uk/pubdeals?utm_source=sizzlapp&amp;amp;utm_medium=app&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt; }, &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 08:14:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/251807#M1093</guid>
      <dc:creator>mark_forrester</dc:creator>
      <dc:date>2024-07-29T08:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: [Q] - How to mask IPv6 on ingestion</title>
      <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/252175#M1097</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17999"&gt;@mark_forrester&lt;/a&gt;&amp;nbsp;using this regex in regex101 works perfect with all examples:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_2-1722454977449.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21550i3E4DDE9BD45FAAF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_2-1722454977449.png" alt="DanielS_2-1722454977449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and also in Dynatrace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_1-1722454961683.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/21549i59C004F9D64A56BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_1-1722454961683.png" alt="DanielS_1-1722454961683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;let me know how it goes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 19:43:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/252175#M1097</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2024-07-31T19:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Q] - How to mask IPv6 on ingestion</title>
      <link>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/252211#M1101</link>
      <description>&lt;P&gt;Thank you this works a treat&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:33:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Q-How-to-mask-IPv6-on-ingestion/m-p/252211#M1101</guid>
      <dc:creator>mark_forrester</dc:creator>
      <dc:date>2024-08-01T07:33:07Z</dc:date>
    </item>
  </channel>
</rss>

