# Visualizing trends in chains of calls using Athena ALB logs

**URL:** <https://community.amazonquick.com/t/visualizing-trends-in-chains-of-calls-using-athena-alb-logs/32653>\
**Category:** Q&A\
**Tags:** api, developer, quick-sight\
**Created:** [July 16, 2024, 3:31pm UTC](https://community.amazonquick.com/t/visualizing-trends-in-chains-of-calls-using-athena-alb-logs/32653 "2024-07-16T15:31:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmedina](https://avatars.discourse-cdn.com/v4/letter/l/a8b319/32.png) [@lmedina](https://community.amazonquick.com/u/lmedina)\
**Post date:** [July 16, 2024, 3:31pm UTC](https://community.amazonquick.com/t/visualizing-trends-in-chains-of-calls-using-athena-alb-logs/32653/1 "2024-07-16T15:31:36Z")

</div>

I’m a developer new to using Quicksight hoping to study a bit more in detail about how our APIs are used. I’m looking for some general guidance in order to visualize chains of calls being performed to our APIs to see if there’s room for performance improvements across our architecture.

For example, I have records with the time a request was made and a response was sent, so I’m looking for some way to see a call that was made (based on request\_creation\_time) right after the response time of another record, and then gather trends on that.

![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/c/5/c557a3fb8e052773a62c663fa67425d66f7ed053.png)

---

<div class="post-metadata">

**Author:** ![abacon](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/abacon/32/2291_2.png) [@abacon](https://community.amazonquick.com/u/abacon)\
**Post date:** [July 17, 2024, 9:29am UTC](https://community.amazonquick.com/t/visualizing-trends-in-chains-of-calls-using-athena-alb-logs/32653/2 "2024-07-17T09:29:10Z")

</div>

Hi @lmedina,

Thanks for posting your question and welcome to the Quick Sight community.

Within your dataset, are there keys upon which you can associate one row to another? For example, below, I’ve taken your example data, re-ordered and added columns for request ID (rid) and next ID (next\_rid).

| rid | request\_creation\_time | time | next\_rid |
| --- | --- | --- | --- |
| 1 | 2024-06-30 23:59:42 | 2024-06-30 23:59:44 | 4 |
| 2 | 2024-06-30 23:59:43 | 2024-06-30 23:59:45 | 5 |
| 3 | 2024-06-30 23:59:43 | 2024-06-30 23:59:53 | |
| 4 | 2024-06-30 23:59:58 | 2024-06-30 23:59:59 | |
| 5 | 2024-06-30 23:59:59 | 2024-07-01 00:00:01 | 6 |
| 6 | 2024-07-01 00:00:02 | 2024-07-01 00:00:04 | |

If you also calculate the duration of a request then you could plot these associations and visualise the duration of each request using a [Sankey diagram](https://docs.aws.amazon.com/quicksight/latest/user/sankey-diagram.html) as follows:

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/f/1/f101aae2254c079f2a91fd6700e26d738f4b2a95.png)

Would the above help visualise your API request data?

Many Thanks,  
Andrew

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [July 26, 2024, 3:24am UTC](https://community.amazonquick.com/t/visualizing-trends-in-chains-of-calls-using-athena-alb-logs/32653/3 "2024-07-26T03:24:22Z")

</div>

Hi @lmedina, did this solution work for you? I am marking this reply as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the Quick Sight Community!
