Help on creating a visualization of total time taken for service in Kibana

Hi

I am trying to create a time visualization like below

Where 1 - 5 are various calls the single service travels through and come back. Each of these has a separate log source and are indexed in different patterns. but a unique way of identifying each service call is with trace id that gets appended across various layers. We have calculated time taken at each layer and added the event into the same index using logstash aggregator.

Now we want to use these data to create a visualization in Kibana like above. Any assistance here on how to achieve this would help us greatly. Thanks in advance.

This type of visualization is supported in Elastic APM: https://www.elastic.co/guide/en/kibana/current/xpack-apm.html

If your data comes in a different format, then you will need to build a custom visualization using Vega. https://www.elastic.co/guide/en/kibana/current/vega-lite-tutorial-create-your-first-visualizations.html