<?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: Dynatrace Business Events Extractions of Json Array in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/257804#M34035</link>
    <description>&lt;P&gt;Yeah my only specific concern is that I do not want to capture the entire complex object into the biz event since some of it contains sensitive information. So I do not even want it to get to the point where I can parse it with DQL.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 12:01:25 GMT</pubDate>
    <dc:creator>victoria</dc:creator>
    <dc:date>2024-10-02T12:01:25Z</dc:date>
    <item>
      <title>Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/207830#M25299</link>
      <description>&lt;P&gt;I'm having trouble extracting array attributes when there isn't a top level name for the array.&lt;/P&gt;&lt;P&gt;For example, given the following json request body payload:&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;&lt;LI-CODE lang="java"&gt;[{"Account":"f2fafaf3a","Name":"John Doe","MediumID":"a9fjah"}]&lt;/LI-CODE&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;&lt;P&gt;How do I extract the value for Account or Name in the Business Analytics capture rules?&amp;nbsp; The documentation here doesn't seem to cover this use case.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/platform-modules/business-analytics/ba-events-capturing#report-business-event-oneagent" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/platform-modules/business-analytics/ba-events-capturing#report-business-event-oneagent&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:17:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/207830#M25299</guid>
      <dc:creator>keekos</dc:creator>
      <dc:date>2023-03-23T14:17:02Z</dc:date>
    </item>
    <item>
      <title>Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/207907#M25309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you using &lt;A title="DQL Array" href="https://www.dynatrace.com/support/help/shortlink/dql-data-types#array" target="_blank" rel="noopener"&gt;DQL Array&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 08:24:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/207907#M25309</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2023-03-24T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/209008#M25526</link>
      <description>&lt;P&gt;An example of capturing a JSON with nested array (with a JSON element inside of it in position 0):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "id2": "json_with_array_json_nested",
    "accountData":
    [
        {
            "Account": "f2fafaf3a",
            "Name": "John Doe",
            "MediumID": "a9fjah"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Path to capture account name:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;accountData.0.Account&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;This works to get the first position of the array "0" and the value inside the nested JSON. This works on single value arrays.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 07:27:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/209008#M25526</guid>
      <dc:creator>isidre</dc:creator>
      <dc:date>2023-04-04T07:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/209092#M25549</link>
      <description>&lt;P&gt;Thanks, that unfortunately doesn't cover the use case when your data sample omits accountData key for the array.&lt;/P&gt;&lt;P&gt;I ended up using DQL parse and was able to retrieve the correct value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PARSE(requestbody, "DATA 'Account'LD SPACE?':' SPACE? DQS:Account ") &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Apr 2023 20:05:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/209092#M25549</guid>
      <dc:creator>keekos</dc:creator>
      <dc:date>2023-04-04T20:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/209192#M25590</link>
      <description>&lt;P&gt;Ok, so the request body is an array containing a single JSON. Understood.&lt;BR /&gt;A processing rule works fine then. great!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 16:10:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/209192#M25590</guid>
      <dc:creator>isidre</dc:creator>
      <dc:date>2023-04-05T16:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/257794#M34032</link>
      <description>&lt;P&gt;Linked here from our good friend&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/316"&gt;@KlausEnzenhofer&lt;/a&gt; - with a second question for ya: what about extracting an array into a bizevent field?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "id2": "json_with_array_json_nested",
    "accountData":
    [
        {
            "Account": "f2fafaf3a",
            "Name": "John Doe",
            "MediumID": "a9fjah"
        },
        {
            "Account": "gkahfkgjnv",
            "Name": "Andreas Grabner",
            "MediumID": "03u6n9"
        },
        {
            "Account": "5j2nngov8bn",
            "Name": "Brian Wilson",
            "MediumID": "03u5nvov94n"
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And I wanted to grab just the Name and MediumID fields.&lt;BR /&gt;&lt;BR /&gt;Using this matcher: $.accountData.[Name,MediumID] would return an array and not a string.&lt;BR /&gt;&lt;BR /&gt;Would we need to just JSONParse() that field then similar to the DPL above?&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/56003"&gt;@victoria&lt;/a&gt;&amp;nbsp;has a similar question:&amp;nbsp;&lt;A href="https://community.dynatrace.com/t5/Open-Q-A/How-to-Get-Specific-Properties-from-All-Elements-in-an-Array/m-p/257621#M34001" target="_blank"&gt;https://community.dynatrace.com/t5/Open-Q-A/How-to-Get-Specific-Properties-from-All-Elements-in-an-Array/m-p/257621#M34001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 11:26:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/257794#M34032</guid>
      <dc:creator>mtomlinson_not</dc:creator>
      <dc:date>2024-10-02T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Business Events Extractions of Json Array</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/257804#M34035</link>
      <description>&lt;P&gt;Yeah my only specific concern is that I do not want to capture the entire complex object into the biz event since some of it contains sensitive information. So I do not even want it to get to the point where I can parse it with DQL.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 12:01:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-Business-Events-Extractions-of-Json-Array/m-p/257804#M34035</guid>
      <dc:creator>victoria</dc:creator>
      <dc:date>2024-10-02T12:01:25Z</dc:date>
    </item>
  </channel>
</rss>

