<?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 Data from csv including comma in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Data-from-csv-including-comma/m-p/299453#M3340</link>
    <description>&lt;P&gt;Data is currently in a string from a csv for example&lt;/P&gt;&lt;P&gt;2026-05-13 22:51:49.585,email@email.com,service,com.corp.ag,DENIED,,"designer, app-user"&lt;/P&gt;&lt;P&gt;Need to parse it so the data is in format:&lt;/P&gt;&lt;P&gt;| timestamp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | user_email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | service | domain&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| access&amp;nbsp; &amp;nbsp; | field1 | roles&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp;&lt;/P&gt;&lt;P&gt;| 2026-05-13 22:51:49.585 | &lt;A href="mailto:example_email@email.com" target="_blank" rel="noopener"&gt;email@email.com&lt;/A&gt;&amp;nbsp;| service | com.corp.ag&amp;nbsp; | DENIED |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | designer, app-user |&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue being the final field is encapsulated within double quotations and has a comma, and there is a field1 value that is null. Using DPL it doesn't like the blank field, and using splitString(data, ",") splits most of the data correctly but incorrectly the final field which is meant to stay together.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2026 00:24:50 GMT</pubDate>
    <dc:creator>loopy</dc:creator>
    <dc:date>2026-05-14T00:24:50Z</dc:date>
    <item>
      <title>Data from csv including comma</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-from-csv-including-comma/m-p/299453#M3340</link>
      <description>&lt;P&gt;Data is currently in a string from a csv for example&lt;/P&gt;&lt;P&gt;2026-05-13 22:51:49.585,email@email.com,service,com.corp.ag,DENIED,,"designer, app-user"&lt;/P&gt;&lt;P&gt;Need to parse it so the data is in format:&lt;/P&gt;&lt;P&gt;| timestamp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | user_email&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | service | domain&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| access&amp;nbsp; &amp;nbsp; | field1 | roles&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp;&lt;/P&gt;&lt;P&gt;| 2026-05-13 22:51:49.585 | &lt;A href="mailto:example_email@email.com" target="_blank" rel="noopener"&gt;email@email.com&lt;/A&gt;&amp;nbsp;| service | com.corp.ag&amp;nbsp; | DENIED |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | designer, app-user |&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue being the final field is encapsulated within double quotations and has a comma, and there is a field1 value that is null. Using DPL it doesn't like the blank field, and using splitString(data, ",") splits most of the data correctly but incorrectly the final field which is meant to stay together.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 00:24:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-from-csv-including-comma/m-p/299453#M3340</guid>
      <dc:creator>loopy</dc:creator>
      <dc:date>2026-05-14T00:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data from csv including comma</title>
      <link>https://community.dynatrace.com/t5/DQL/Data-from-csv-including-comma/m-p/299465#M3341</link>
      <description>&lt;P&gt;You can handle both cases using the appropriate DPL matchers: `LD*` for the optional/empty `field1` value, and `CSVDQS` for the quoted CSV string in `roles`, since it contains a comma and should remain as one field.&lt;BR /&gt;If the CSV value is enclosed in single quotes instead of double quotes, then `CSVSQS` can be used instead.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 10:15:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Data-from-csv-including-comma/m-p/299465#M3341</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2026-05-14T10:15:33Z</dc:date>
    </item>
  </channel>
</rss>

