<?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: BizEvents not capture multiple values in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234776#M569</link>
    <description>&lt;P&gt;Maybe take a look at this, it could help :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Developer-Q-A-Forum/DQL-DPL-Transposing-Arrays-into-lines/m-p/230638" target="_blank"&gt;https://community.dynatrace.com/t5/Developer-Q-A-Forum/DQL-DPL-Transposing-Arrays-into-lines/m-p/230638&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 14:48:29 GMT</pubDate>
    <dc:creator>Pierre_L</dc:creator>
    <dc:date>2024-01-18T14:48:29Z</dc:date>
    <item>
      <title>BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233734#M511</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I've some questions about BizEvents and issues I'm encountering.&lt;BR /&gt;This is my first time working on BizEvents, so the answers may be simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to retrieve the “Request-Body” information from an action.&lt;BR /&gt;To keep it simple, I started by collecting the entire body (it works well):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_0-1704795894379.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16689i19A5B62D3F27C778/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_0-1704795894379.png" alt="gbaudart_0-1704795894379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I run my DQL command, and we see that I have recovered the entire body:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_1-1704795894385.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16690i0124E3A67605F7A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_1-1704795894385.png" alt="gbaudart_1-1704795894385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the problems I encounter is when there are multiple values for the same variables in the body.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_2-1704795894386.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16688i974708520D2A82A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_2-1704795894386.png" alt="gbaudart_2-1704795894386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to process it to retrieve all "nR" and "nC" values.&lt;BR /&gt;I would like a BizEvent record by “CorrelationId”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to parse the BizEvent, I only get the first row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_3-1704795894389.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16692i1F54445923556F8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_3-1704795894389.png" alt="gbaudart_3-1704795894389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question #1: How to obtain a row by CorrelationId?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes the variables do not appear in the same order in the body. So I get “null” in this case.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question n°2: How do I obtain the values of my variables whatever the order in which they appear?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then I tried not to capture the entire body but only the fields that interest me. (e.g. “nC”)&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_4-1704795894389.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16691iAE489120F513F92D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_4-1704795894389.png" alt="gbaudart_4-1704795894389.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Only, I have nothing going back to this field.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question #3: Do you know how I could configure each of these fields for it to work?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 14:10:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233734#M511</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-01-09T14:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233775#M514</link>
      <description>&lt;P&gt;Is your response body a json? If so, you can use the path to point the exactly field you need, let's say the field you need is the correlationID, then you need to tell the path to look for it, but in your case you will need to provide also a position, since it seems to be a list, so it should be something like 0.correlationID, this should get you the value from first row.&lt;/P&gt;&lt;P&gt;The problem here is when you don't know how many positions you will get in the result... you will end up like me here: &lt;A href="https://community.dynatrace.com/t5/DQL/is-it-possible-to-search-and-parse-an-specific-Json-List/td-p/228406" target="_blank"&gt;https://community.dynatrace.com/t5/DQL/is-it-possible-to-search-and-parse-an-specific-Json-List/td-p/228406&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.dynatrace.com/html/@86FDDFCEA6410D089F8D7FC4EA497A8A/images/emoticons/donotpass.png" alt=":donotpass:" title=":donotpass:" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 14:16:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233775#M514</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-01-09T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233781#M515</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for this.&lt;/P&gt;&lt;P&gt;I think it's actually .json.&lt;BR /&gt;Indeed, the number of positions may vary. However, unlike you, I cannot have empty positions.&lt;BR /&gt;I'll look into that to see what I can do.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 14:39:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233781#M515</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-01-09T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233895#M527</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Does anyone have an idea for question #3?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 13:37:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/233895#M527</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-01-10T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234776#M569</link>
      <description>&lt;P&gt;Maybe take a look at this, it could help :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.dynatrace.com/t5/Developer-Q-A-Forum/DQL-DPL-Transposing-Arrays-into-lines/m-p/230638" target="_blank"&gt;https://community.dynatrace.com/t5/Developer-Q-A-Forum/DQL-DPL-Transposing-Arrays-into-lines/m-p/230638&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 14:48:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234776#M569</guid>
      <dc:creator>Pierre_L</dc:creator>
      <dc:date>2024-01-18T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234785#M570</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/66331"&gt;@Pierre_L&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;For Q#1 &amp;amp; Q#2, it's resolved with :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch bizevents
| fieldsAdd Ximestamp = timestamp
| filter isNotNull(responsebodyfull)
| parse responsebodyfull, "JSON(strict=false):json"
| expand jobs=json[jobs]
| parse jobs, """LD '"correlationId":' STRING:correlationId LD '"montantE":' INTEGER:montantE LD '"nR":' INTEGER:nR LD '"nC":' INTEGER:nC LD '"XX":' STRING:XX LD '"formule":' STRING:formule"""
| fields XTimestamp, correlationId, nR, nC, XX, montantE
| limit 10000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:56:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234785#M570</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-01-18T16:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: BizEvents not capture multiple values</title>
      <link>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234787#M571</link>
      <description>&lt;P&gt;For Question #3, I made progress with this config :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_0-1705591064489.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/16970i22416792C80401DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_0-1705591064489.png" alt="gbaudart_0-1705591064489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I still have a problem.&lt;BR /&gt;&lt;BR /&gt;This allows me to only recover the variable at the indicated position (here 0).&lt;BR /&gt;How do I make this able to retrieve all existing positions?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 15:19:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/BizEvents-not-capture-multiple-values/m-p/234787#M571</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-01-18T15:19:44Z</dc:date>
    </item>
  </channel>
</rss>

