# Aggregation of fields

**URL:** <https://discuss.elastic.co/t/aggregation-of-fields/317969>\
**Category:** Logstash\
**Tags:** vega\
**Created:** [November 2, 2022, 10:48am UTC](https://discuss.elastic.co/t/aggregation-of-fields/317969 "2022-11-02T10:48:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arphillips](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@arphillips](https://discuss.elastic.co/u/arphillips)\
**Post date:** [November 2, 2022, 10:48am UTC](https://discuss.elastic.co/t/aggregation-of-fields/317969/1 "2022-11-02T10:48:39Z")

</div>

How do I aggregate fields with vega in a sankey graph? I want to build a graph that shows AS paths using bytes. I have most of the graph in place.

However, when I use bytes I get a 'flow' for each different number, can I aggregate these? So instead of having 3 'flows' showing 15, 20 and 54 bytes, have 1 'flow' showing 89 bytes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 30, 2022, 10:49am UTC](https://discuss.elastic.co/t/aggregation-of-fields/317969/2 "2022-11-30T10:49:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
