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)?
If you are looking for across multiple log line/event summarization, use of metrics suggestion is correct one. Here is step-by-step example of metric extraction in OpenPipeline: Parse log lines and extract a metric — Dynatrace Docs
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: