# イベントとイベントの間隔をKibanaでグラフ化したい

**URL:** https://discuss.elastic.co/t/kibana/187126
**Category:** 日本語による質問・議論はこちら
**Created:** [June 24, 2019, 12:42pm UTC](https://discuss.elastic.co/t/kibana/187126 "2019-06-24T12:42:15Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![GeneA](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@GeneA](https://discuss.elastic.co/u/GeneA)
#### Post date: [June 27, 2019, 8:43am UTC](https://discuss.elastic.co/t/kibana/187126/4 "2019-06-27T08:43:07Z")

</div>

その後いろいろdisucussionの投稿を探し回ってみましたが、似たような質問をされた方がいらっしゃいました。

やはりデータ（ドキュメント）を跨ぐような情報を元に計算した結果を  
Kibanaでグラフ化するには、インデックス時にイベント発生終了時間を追加する等の工夫が必要そうです。

> [@Kibana4でのデータの計算と可視化について](https://discuss.elastic.co/t/kibana4/33131):
>
> こんにちは。 elasticserchに格納したデータをkibana4で可視化しようと試みている者なのですが。 以下の要素でデータを格納している場合に、 datetime, user, task\_id, status 以下の様なデータが格納されているとして、 2015/10/28 10:10:10, "test\_user1", "task\_1", "task\_begin" 2015/10/28 10:15:10, "test\_user1", "task\_1", "task\_finish" 2015/10/28 10:20:10, "test\_user2", "task\_2", "task\_begin" 2015/10/28 10:25:10, "test\_user1", "task\_3", "task\_begin" 2015/10/28 11:30:10, "test\_user2", "task\_2", "task\_finish" 2015/10/28 12:35:10, "test\_user1", "task\_3", "task\_finish" task\_id毎…

> [@KPIs based on events in time](https://discuss.elastic.co/t/kpis-based-on-events-in-time/88028):
>
> Hi, I want to display KPIs based on event intervals, e.g. average time between event A and event B per user average amount of event C in time per user I struggle to figure out what is the best way to make this with Kibana, anyone has some ideas or documentation on how to achieve this? Thanks, Stefan

---

_[View the full topic](https://discuss.elastic.co/t/kibana/187126)._
