# OpenPipeline summarization

**URL:** <https://community.dynatrace.com/t/openpipeline-summarization/49318>\
**Category:** DQL\
**Tags:** openpipeline, dql\
**Created:** [December 11, 2024, 3:36pm UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318 "2024-12-11T15:36:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_r\_k](https://avatars.discourse-cdn.com/v4/letter/_/3d9bf3/32.png) [@\_r\_k](https://community.dynatrace.com/u/_r_k)\
**Post date:** [December 11, 2024, 3:36pm UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318/1 "2024-12-11T15:36:59Z")

</div>

How to summarize/aggregate in OpenPipeline

this

```

| summarize accessed\_objects\_count=sum(arr\_size)

```

nor

```

| expand accessed\_objects\_array  
| summarize accessed\_objects\_count=count()  
```

is allowed, so how to summarize/count,

I haven’t found any summarization command/function in the documentation:

> **[DQL functions in OpenPipeline](https://docs.dynatrace.com/docs/platform/openpipeline/reference/dql/openpipeline-dql-functions)**
>
> A list of DQL functions available in OpenPipeline.

> **[Log processing commands](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-classic-log-processing/lma-log-processing-commands)**
>
> Explore scenarios of how to use log processing commands in Dynatrace powered by Grail.

Can someone provide me with some examples, please?

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [December 12, 2024, 1:28am UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318/2 "2024-12-12T01:28:12Z")

</div>

Hey&nbsp;[@\_r\_k\_](https://community.dynatrace.com/user/9453)

What are you trying to achieve with summarization? If you’re looking to get a count over time, would turning it into a metric work?

---

<div class="post-metadata">

**Author:** ![\_r\_k](https://avatars.discourse-cdn.com/v4/letter/_/3d9bf3/32.png) [@\_r\_k](https://community.dynatrace.com/u/_r_k)\
**Post date:** [December 12, 2024, 7:30am UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318/3 "2024-12-12T07:30:08Z")

</div>

would you be so kind and provide me with example of self contained openpieline solution containing such aggregation/summarization metric (where attribute can’t be directly used, but needs preprocesing first)?

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [December 12, 2024, 12:08pm UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318/4 "2024-12-12T12:08:25Z")

</div>

If you are looking for across multiple log line/event summarization, use of metrics suggestion is correct one.&nbsp;Here is step-by-step example of metric extraction in OpenPipeline:&nbsp;[Parse log lines and extract a metric — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/platform/openpipeline/use-cases/tutorial-log-processing-pipeline)

If you want to count number of elements in arrays associated with different ingested objects, first you need to create filed holding array size for single record:

```markup
| fieldsAdd accessed_objects_count=arraySize(accessed_objects_array)

```

and then use this field as input to metric calculation

---

<div class="post-metadata">

**Author:** ![\_r\_k](https://avatars.discourse-cdn.com/v4/letter/_/3d9bf3/32.png) [@\_r\_k](https://community.dynatrace.com/u/_r_k)\
**Post date:** [December 12, 2024, 6:15pm UTC](https://community.dynatrace.com/t/openpipeline-summarization/49318/5 "2024-12-12T18:15:43Z")

</div>

yeah, ended up doing exactly this, so…

so we are preparing data in openpipeline and summarization is done outside, no problem, but took a while to realize it
