<?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: Service Naming using Regex in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169937#M17907</link>
    <description>&lt;P&gt;What output are you looking for specifically? Can you provide another example? This screenshot shows a preview of how Dave's rule above would work - does this not match your initial request?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ryan_ott_0-1627576275254.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1729iEA857DBFA0C28FBB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ryan_ott_0-1627576275254.png" alt="ryan_ott_0-1627576275254.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 16:31:31 GMT</pubDate>
    <dc:creator>ryan_ott</dc:creator>
    <dc:date>2021-07-29T16:31:31Z</dc:date>
    <item>
      <title>Service Naming using Regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/164762#M17149</link>
      <description>&lt;P&gt;I am stumped!&amp;nbsp; I am trying to setup a service naming rule using the Detected Service Name.&amp;nbsp; In this case, I would only like the bolded text - (/&lt;STRONG&gt;mothership&lt;/STRONG&gt;).&amp;nbsp; How do I extract only this word using Regex?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried -&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;^[a-zA-Z0-9]*+&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;\/(?&amp;gt;.+)&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For these attempts, I get close, but still have varying results.&amp;nbsp; I want to remove the slash and the () and only have the word.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I really want is this...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Detected Service Name - "Default Web Site:80 (/mothership)" &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; "mothership"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{Service:DetectedName]&lt;/P&gt;
&lt;P&gt;Web Request Service; .NET&lt;/P&gt;
&lt;P&gt;Detected service name contains regex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 13:10:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/164762#M17149</guid>
      <dc:creator>bill_scheuernst</dc:creator>
      <dc:date>2021-06-30T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Service Naming using Regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/167849#M17446</link>
      <description>&lt;P&gt;While this is very primitive, you could try&amp;nbsp;(..........).$ but then again that would be static on the number of characters&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 21:23:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/167849#M17446</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2021-06-17T21:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Service Naming using Regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/168542#M17660</link>
      <description>&lt;P&gt;Have you considered just skipping the regex entirely and using the&amp;nbsp;{Service:WebContextRoot} placeholder?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dave_mauney_0-1625070640730.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1447i734137FC4C67FF90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dave_mauney_0-1625070640730.png" alt="dave_mauney_0-1625070640730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could then remove the slash with regex if really needed...&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 16:33:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/168542#M17660</guid>
      <dc:creator>dave_mauney</dc:creator>
      <dc:date>2021-06-30T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Service Naming using Regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169934#M17906</link>
      <description>&lt;P&gt;While a good answer, this solution doesn't completely solve the problem.&amp;nbsp; I'd like to clean up the default name which includes ":80 (/app)" or ":80, :443 (/app)", etc. and only have the name of the app pool or web request service.&amp;nbsp; The goal here is to clean up these extraneous characters as they are being imported into ServiceNow.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 16:08:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169934#M17906</guid>
      <dc:creator>bill_scheuernst</dc:creator>
      <dc:date>2021-07-29T16:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Service Naming using Regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169937#M17907</link>
      <description>&lt;P&gt;What output are you looking for specifically? Can you provide another example? This screenshot shows a preview of how Dave's rule above would work - does this not match your initial request?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ryan_ott_0-1627576275254.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1729iEA857DBFA0C28FBB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="ryan_ott_0-1627576275254.png" alt="ryan_ott_0-1627576275254.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 16:31:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169937#M17907</guid>
      <dc:creator>ryan_ott</dc:creator>
      <dc:date>2021-07-29T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Service Naming using Regex</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169942#M17908</link>
      <description>&lt;P&gt;Solution works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bill_scheuernst_0-1627577698781.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1731i2A33E1C1807750AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bill_scheuernst_0-1627577698781.png" alt="bill_scheuernst_0-1627577698781.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bill_scheuernst_1-1627577738175.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1732i4D7972EC3F82BA4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bill_scheuernst_1-1627577738175.png" alt="bill_scheuernst_1-1627577738175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 16:55:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Service-Naming-using-Regex/m-p/169942#M17908</guid>
      <dc:creator>bill_scheuernst</dc:creator>
      <dc:date>2021-07-29T16:55:46Z</dc:date>
    </item>
  </channel>
</rss>

