<?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: simple csv event log parse in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234222#M557</link>
    <description>&lt;P&gt;thanks, not 100% sure i have understood it.&amp;nbsp; field 4 needs to be split into multiple sub fields.&amp;nbsp; not seeing that in the output.&amp;nbsp;&amp;nbsp;&lt;EM&gt;what if i dont know how many sub fields there might be?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(i owe you a beer/coffee/milkshake)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 16:21:53 GMT</pubDate>
    <dc:creator>S_Hadley1138</dc:creator>
    <dc:date>2024-01-12T16:21:53Z</dc:date>
    <item>
      <title>simple csv event log parse</title>
      <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234060#M545</link>
      <description>&lt;P&gt;Hi there, I'm having a problem with a simple parser acting on a csv file. my problem appears when there is an empty field and a &lt;STRONG&gt;",,"&lt;/STRONG&gt; in the source log.&lt;BR /&gt;I've simplified the log below to attempt to easily demonstrate my issue.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:23:02.578Z,192.168.0.100,Server1,Test,Test,CatContentConversion&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:24:06.345Z,192.168.0.103,Server2,Test,Test,Alert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:27:04.543Z,192.168.0.103,Server2,,Test,Alert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:28:03.345Z,192.168.0.178,Server5,,Tree,Bannana&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This is my Parse in DPL architect&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;JSONTIMESTAMP:timestamp&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;','&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IPV4ADDR:field1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;','&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LD:field2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;','&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LD:field3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;','&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LD:field4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;','&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LD:field5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;EOF&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;the 3rd and 4th lines in the log, should have empty values in field3, as it is represented by &lt;STRONG&gt;",,"&lt;/STRONG&gt; in the source.&lt;/P&gt;
&lt;P&gt;However, what i am finding is that this double comma, seems to corrupt in the parse, and it just skips those records all together.&lt;/P&gt;
&lt;P&gt;very odd behaviour. if you insert a character between the commas, it then works fine&lt;/P&gt;
&lt;P&gt;Does anyone else parse csv log files and have seen this issue before?&lt;/P&gt;
&lt;P&gt;Any pointers would be appreciated, thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 08:28:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234060#M545</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2024-01-15T08:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: simple csv event log parse</title>
      <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234078#M548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/70034"&gt;@S_Hadley1138&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can add an asterix to the fields which might not be populated&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sinisa_zubic_0-1704992385458.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16764i8D6977C72D0FD74B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sinisa_zubic_0-1704992385458.png" alt="sinisa_zubic_0-1704992385458.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sinisa_zubic_1-1704992395947.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16765i5612B990494D3086/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sinisa_zubic_1-1704992395947.png" alt="sinisa_zubic_1-1704992395947.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:00:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234078#M548</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-01-11T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: simple csv event log parse</title>
      <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234216#M555</link>
      <description>&lt;P&gt;brilliant, thanks...&amp;nbsp; there is a follow-up question, as clearly you know your parsing.....&amp;nbsp; &amp;nbsp; if say &lt;STRONG&gt;field4&lt;/STRONG&gt; potentially contains multiple entries, the are separated by a "&lt;STRONG&gt;;&lt;/STRONG&gt;"&amp;nbsp; how do i extract these?&amp;nbsp; given that not all lines will have this?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:23:02.578Z,192.168.0.100,Server1,Test,Test;Cat;Dog,CatContentConversion&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:24:06.345Z,192.168.0.103,Server2,Test,Test,Alert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:27:04.543Z,192.168.0.103,Server2,,Test;elephant,Alert&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2024-01-11T13:28:03.345Z,192.168.0.178,Server5,,Tree,Bannana&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 15:41:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234216#M555</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2024-01-12T15:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: simple csv event log parse</title>
      <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234220#M556</link>
      <description>&lt;P&gt;you can do it with &lt;A href="https://docs.dynatrace.com/docs/shortlink/dpl-alternatives-group" target="_blank"&gt;alternative groups&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;JSONTIMESTAMP:timestamp
','
IPV4ADDR:field1
','
LD*:field2
','
LD*:field3
','
((LD:subfield1 ';' LD:subfield2 ';' LD:subfield3)|(LD:field4))
','
LD:field5&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sinisa_zubic_0-1705075171605.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16796iCA0424E1DC1B3210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sinisa_zubic_0-1705075171605.png" alt="sinisa_zubic_0-1705075171605.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 16:00:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234220#M556</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-01-12T16:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: simple csv event log parse</title>
      <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234222#M557</link>
      <description>&lt;P&gt;thanks, not 100% sure i have understood it.&amp;nbsp; field 4 needs to be split into multiple sub fields.&amp;nbsp; not seeing that in the output.&amp;nbsp;&amp;nbsp;&lt;EM&gt;what if i dont know how many sub fields there might be?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(i owe you a beer/coffee/milkshake)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 16:21:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234222#M557</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2024-01-12T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: simple csv event log parse</title>
      <link>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234300#M560</link>
      <description>&lt;P&gt;if you don't know how many sub fields there are, then the best is to match it as array&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;JSONTIMESTAMP:timestamp
','
IPV4ADDR:field1
','
LD*:field2
','
LD*:field3
',' (Array{LD:i (';' | &amp;gt;&amp;gt;',')}{1,}:field4)?
','
LD:field5&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sinisa_zubic_0-1705308914558.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16818iC7E71D790BF4C204/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sinisa_zubic_0-1705308914558.png" alt="sinisa_zubic_0-1705308914558.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 08:55:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/simple-csv-event-log-parse/m-p/234300#M560</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2024-01-15T08:55:55Z</dc:date>
    </item>
  </channel>
</rss>

