# How to properly parse BizEvents JSON data with OpenPipeline

**URL:** <https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276>\
**Category:** Open Q&A\
**Tags:** openpipeline\
**Created:** [October 11, 2024, 8:23am UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276 "2024-10-11T08:23:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 11, 2024, 8:23am UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/1 "2024-10-11T08:23:47Z")

</div>

I’m trying to process and extract a BizEvent payload with OpenPipeline, but it seems that OpenPipeline only supports a limited amount of DQL?

Imagine the following data content of a BizEvent:

```markup
{
"report": [
  {
    "indexName": "categories-cs_cz-search",
    "count": "896"
  },
  {
    "indexName": "categories-de_ch-search",
    "count": "957"
  },
  {
    "indexName": "categories-hr_hr-search",
    "count": "491"
  }
]
}

```

With DQL on a Notebook I could parse this and simply convert it to individual records (which I’d like to extract metrics from with OpenPipeline)

```markup
| parse report, "JSON:json"
| fieldsAdd searchCount = json[searchCount]
| expand searchCount
| fieldsAdd indexName=searchCount[indexName], count=searchCount[count]
| fieldsKeep timestamp,indexName, count, "event.*"

```

However the expand command is not supported in OpenPipeline:

 ![r_weber_0-1728634086409.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/823b9d9ef6c5ce3a2e542f90f8853c33e487835a.png)

This seems to contradict the intention of OpenPipeline, since BizEvents should be a first class citizen for processing?

I intended to extract multiple records with a ‘count’ and a ‘indexName’ and use the latter one as dimension on a metric, but this seems to be not possible at all?  
Has someone an idea how to achieve this from a single BizEvent that carries multiple metrics?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 11, 2024, 3:46pm UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/2 "2024-10-11T15:46:25Z")

</div>

Hello&nbsp;[@r\_weber](https://community.dynatrace.com/user/35901)

I hope the attached URLs add value to current situation:

- [Ingest business events via API](https://docs.dynatrace.com/docs/platform-modules/business-analytics/ba-api-ingest)
- [business-events-metric-extraction](https://docs.dynatrace.com/docs/shortlink/ba-business-events-metric-extraction)
- [https://docs.dynatrace.com/docs/shortlink/ba-events-processing-matcher](https://docs.dynatrace.com/docs/platform-modules/business-analytics/ba-events-processing/ba-events-processing-matcher)

BR,

Peter

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 11, 2024, 5:05pm UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/3 "2024-10-11T17:05:47Z")

</div>

That is unfortunately not what helps for the approach with OpenPipeline.

---

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [October 14, 2024, 1:06pm UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/4 "2024-10-14T13:06:13Z")

</div>

Hey&nbsp;[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;,  
expand is just like a visualisation command that&nbsp; **Expands an array into separate records.** &nbsp;We should be able to parse data without expand as well. Can you try this in DQL processor definition in your Openpipeline and let me know if it worked for you ?

```markup
parse report, "JSON:json" | fieldsFlatten json | fieldsAdd searchCount = json[searchCount] | fieldsAdd indexName=searchCount[indexName], count=searchCount[count]

```

Regards,  
[@Maheedhar\_T](https://community.dynatrace.com/user/76275)

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 14, 2024, 6:38pm UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/5 "2024-10-14T18:38:35Z")

</div>

That gives me the same result as I got before, unfortunately OpenPipeline can’t work further on with this content.  
What is strange also is that the query in openpipeline processor is escaping the JSON value, while on notebooks it isn’t. IMO the result should be a proper JSON and not an array of json-like strings…

 ![r_weber_0-1728931059748.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/e/1effb9486579b74b5c9789c323b84fad4ea8fabe.png)

---

<div class="post-metadata">

**Author:** ![Nick-Montana](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nick-montana/32/2051_2.png) [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Post date:** [October 14, 2024, 8:01pm UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/6 "2024-10-14T20:01:17Z")

</div>

Hey,

I’m assuming the openpipeline source is the OneAgent? This data is being captured from the business capture section within the settings tab? I think what’s happening is you are capturing the request body but not configuring the individual bizevent table properties (key/values)

Can you please reply to this comment with your capture rules that you set in the settings tab? Have you looked through the docs? you can dot walk the processor from the capture rules

[https://docs.dynatrace.com/docs/platform-modules/business-analytics/ba-events-capturing](https://docs.dynatrace.com/docs/platform-modules/business-analytics/ba-events-capturing)

 ![NickMontana_0-1728935886876.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/6/5654375234fea42f17d5821138f09612c5f57ef6.png)

---

<div class="post-metadata">

**Author:** ![Maheedhar\_T](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/maheedhar_t/32/155_2.png) [@Maheedhar\_T](https://community.dynatrace.com/u/Maheedhar_T)\
**Post date:** [October 14, 2024, 8:23pm UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/7 "2024-10-14T20:23:54Z")

</div>

Ah.! Now I get it. The searchCount here is an array of arrays so if you want to access indexName you have to do something like&nbsp;**indexName=searchCount[0][indexName].**

Also even though it is escaping the values with \ each of that is a JSON not a string.

you can test it out by using

```markup
parse report, "JSON:json" 
| fieldsFlatten json 
| fieldsAdd searchCount = json[searchCount]
| fieldsAdd indexName = searchCount[0][indexName]

```

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 15, 2024, 7:27am UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/8 "2024-10-15T07:27:12Z")

</div>

Yes, of course I can access every position in the array with an index.  
But this would still not solve the initial problem of having one business event with multiple values (and the indexName as dimension) processed in OpenPipeline.

Maybe that just doesn’t work at all? And OP just has a 1:1 matching (1 event = one metric point)?

---

<div class="post-metadata">

**Author:** ![yniasreynders96](https://avatars.discourse-cdn.com/v4/letter/y/ee7513/32.png) [@yniasreynders96](https://community.dynatrace.com/u/yniasreynders96)\
**Post date:** [February 11, 2026, 8:20am UTC](https://community.dynatrace.com/t/how-to-properly-parse-bizevents-json-data-with-openpipeline/48276/9 "2026-02-11T08:20:55Z")

</div>

Hey Reinhard,

Did you find a solution for this yet? We are having the exact same issue as you are describing here,

Kr,

Ynias
