How to upgrade data with aggregation results

Hello,

We are using ELK to store some informations about business process. Informations logged does not contains any informations about process duration.

We find a way to compute it with an scripted aggregation, but we do not find a way to visualize it inside Kibana. We also try to update log informations into ELK, but we do not find the way to doing it.

Is someone able to help us ?