# Pmacct as\_path graphs

**URL:** <https://discuss.elastic.co/t/pmacct-as-path-graphs/317502>\
**Category:** Logstash\
**Created:** [October 26, 2022, 10:40am UTC](https://discuss.elastic.co/t/pmacct-as-path-graphs/317502 "2022-10-26T10:40:50Z")\
**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:** [October 26, 2022, 10:40am UTC](https://discuss.elastic.co/t/pmacct-as-path-graphs/317502/1 "2022-10-26T10:40:50Z")

</div>

I am trying to make something akin to a sankey graph using showing the ASN paths. I'd like to be able to visualize the full path and each hop, pmacct is my netflow collector it sends the key "as\_path" in the format "65001\_65002\_65003" etc.

There's a couple of issues with this, first as it's in one string I'll need to separate it out and I presume put each AS number into its own key pair? Next the path could be one long, ten long or forty long. Is there a way to break the string down regardless of length? I would have thought that they would have to be in unique key pairs within the index, something like AS#1, AS#2 etc.

Any input on how I would be able to achieve this would be appreciated.

---

<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 23, 2022, 10:40am UTC](https://discuss.elastic.co/t/pmacct-as-path-graphs/317502/2 "2022-11-23T10:40:57Z")

</div>

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