<?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: How to use DQL to extract a substring after/before/between a certain character? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-use-DQL-to-extract-a-substring-after-before-between-a/m-p/274462#M1903</link>
    <description>&lt;P&gt;You can use the &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/extraction-and-parsing-commands#parse" target="_self"&gt;parse&lt;/A&gt; command combined with a DPL pattern to extract the data you need into a new field.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 21:52:42 GMT</pubDate>
    <dc:creator>marco_irmer</dc:creator>
    <dc:date>2025-04-04T21:52:42Z</dc:date>
    <item>
      <title>How to use DQL to extract a substring after/before/between a certain character?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-use-DQL-to-extract-a-substring-after-before-between-a/m-p/274278#M1889</link>
      <description>&lt;P&gt;In DQL, splitString and substring couldn't achieved what I want.&lt;/P&gt;&lt;P&gt;Before this, I can always try to be creative and use other kind of DQL function/command or manipulations and achieved what I want. But today there is just this one problem I couldn't solve, hence asking this question here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Unix world, we can use awk, grep, sed, tail (or any combinations). It seems like it DQL there isn't this much freedom though.&lt;/P&gt;&lt;P&gt;Don't get me wrong, DQL is good and powerful for querying data in Grail, but when it comes to string manipulation it seems to be can be a bit lacking sometimes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anyway&lt;/STRONG&gt;, the problem I'm facing is as below:&lt;/P&gt;&lt;P&gt;I want to extract the reason of pods not healthy as shown in the last column of screenshot below, how can I use DQL to extract the part before? (i.e to extract only the string before&amp;nbsp;&lt;EM&gt;\\\"}]}\", \"{\\\"events&lt;/EM&gt; ?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="How.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27388iDCB2FF4A763FDECE/image-size/large?v=v2&amp;amp;px=999" role="button" title="How.png" alt="How.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wai Keat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 01:40:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-use-DQL-to-extract-a-substring-after-before-between-a/m-p/274278#M1889</guid>
      <dc:creator>waikeat_chan</dc:creator>
      <dc:date>2025-04-03T01:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DQL to extract a substring after/before/between a certain character?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-use-DQL-to-extract-a-substring-after-before-between-a/m-p/274462#M1903</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-query-language/commands/extraction-and-parsing-commands#parse" target="_self"&gt;parse&lt;/A&gt; command combined with a DPL pattern to extract the data you need into a new field.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 21:52:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-use-DQL-to-extract-a-substring-after-before-between-a/m-p/274462#M1903</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-04-04T21:52:42Z</dc:date>
    </item>
  </channel>
</rss>

