<?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 Extracting context root from a URL to tag it in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Extracting-context-root-from-a-URL-to-tag-it/m-p/181259#M20026</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have an URL like /application-context-root/text1/text2/text3/text4 which is served by a service.&lt;/P&gt;
&lt;P&gt;We would like to extract the chain /application-context-root/ in order to create an automatic tag rule using this chain.&lt;/P&gt;
&lt;P&gt;We've created a request attribute which extract the info but automatic tag rules don´t allow using a request attribute to tag something.&lt;/P&gt;
&lt;P&gt;We have also launched Detection full web request API called&lt;/P&gt;
&lt;P&gt;curl -X GET "&lt;A href="https://mytenant/api/config/v1/service/detectionRules/FULL_WEB_REQUEST" target="_blank" rel="noopener"&gt;https://mytenant/api/config/v1/service/detectionRules/FULL_WEB_REQUEST&lt;/A&gt;" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token mytoken"&lt;/P&gt;
&lt;P&gt;but we receive the following error: TypeError: NetworkError when attempting to fetch resource.&lt;/P&gt;
&lt;P&gt;Is there any way to get the context root in order to create an automatic rule to tag it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Elena.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 09:53:20 GMT</pubDate>
    <dc:creator>erh_inetum</dc:creator>
    <dc:date>2022-02-24T09:53:20Z</dc:date>
    <item>
      <title>Extracting context root from a URL to tag it</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Extracting-context-root-from-a-URL-to-tag-it/m-p/181259#M20026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have an URL like /application-context-root/text1/text2/text3/text4 which is served by a service.&lt;/P&gt;
&lt;P&gt;We would like to extract the chain /application-context-root/ in order to create an automatic tag rule using this chain.&lt;/P&gt;
&lt;P&gt;We've created a request attribute which extract the info but automatic tag rules don´t allow using a request attribute to tag something.&lt;/P&gt;
&lt;P&gt;We have also launched Detection full web request API called&lt;/P&gt;
&lt;P&gt;curl -X GET "&lt;A href="https://mytenant/api/config/v1/service/detectionRules/FULL_WEB_REQUEST" target="_blank" rel="noopener"&gt;https://mytenant/api/config/v1/service/detectionRules/FULL_WEB_REQUEST&lt;/A&gt;" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token mytoken"&lt;/P&gt;
&lt;P&gt;but we receive the following error: TypeError: NetworkError when attempting to fetch resource.&lt;/P&gt;
&lt;P&gt;Is there any way to get the context root in order to create an automatic rule to tag it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 09:53:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Extracting-context-root-from-a-URL-to-tag-it/m-p/181259#M20026</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2022-02-24T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting context root from a URL to tag it</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Extracting-context-root-from-a-URL-to-tag-it/m-p/181979#M20130</link>
      <description>&lt;P&gt;If I understand correctly, you can try something like this, as the context root is metadata we detect OOTB:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="axel_ayala_0-1646671253647.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4693iA8CC46A55F6F9309/image-size/medium?v=v2&amp;amp;px=400" role="button" title="axel_ayala_0-1646671253647.png" alt="axel_ayala_0-1646671253647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:41:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Extracting-context-root-from-a-URL-to-tag-it/m-p/181979#M20130</guid>
      <dc:creator>axel_ayala</dc:creator>
      <dc:date>2022-03-07T16:41:12Z</dc:date>
    </item>
  </channel>
</rss>

