how to filter for latest events of an event chain?
Posted: Thu Jun 16, 2016 9:52 am
Hi,
during the processing of an order, the order goes through multiple status. The order is identified by an id.
For example we have status_pending, status_in_process_1, status_in_process_2, status_end_success, status_end_failure.
id, current_status and and other fields are parsed from the logs and inserted into logserver as fields.
When I filter for an order_id, then I would find multiple events, e.g.:
order_1, status_start
order_1, status_in_process_1
order_2, status_start
order_3, status_start
order_3, status_in_process_1
order_3, status_in_process_2
order_3, status_end_success
order_4, status_start
order_4, status_in_process_1
order_4, status_in_process_2
order_4, status_end_failure
Now I would like to create a pie chart, where I only see the latest status of an order and push them into a pie chart for example. Only the bold marked entries above should be taken into account.
How can I do that?
Thanks, Andreas
during the processing of an order, the order goes through multiple status. The order is identified by an id.
For example we have status_pending, status_in_process_1, status_in_process_2, status_end_success, status_end_failure.
id, current_status and and other fields are parsed from the logs and inserted into logserver as fields.
When I filter for an order_id, then I would find multiple events, e.g.:
order_1, status_start
order_1, status_in_process_1
order_2, status_start
order_3, status_start
order_3, status_in_process_1
order_3, status_in_process_2
order_3, status_end_success
order_4, status_start
order_4, status_in_process_1
order_4, status_in_process_2
order_4, status_end_failure
Now I would like to create a pie chart, where I only see the latest status of an order and push them into a pie chart for example. Only the bold marked entries above should be taken into account.
How can I do that?
Thanks, Andreas