# Ways to see how long a session is online?

**URL:** <https://discuss.elastic.co/t/ways-to-see-how-long-a-session-is-online/207485>\
**Category:** Kibana\
**Created:** [November 12, 2019, 10:19am UTC](https://discuss.elastic.co/t/ways-to-see-how-long-a-session-is-online/207485 "2019-11-12T10:19:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [November 12, 2019, 10:19am UTC](https://discuss.elastic.co/t/ways-to-see-how-long-a-session-is-online/207485/1 "2019-11-12T10:19:21Z")

</div>

Hi,

at login our user gets a static session id which is valid until logout / timeout.  
I want to analyze how long our users are logged in.

What possibilities do I have to do so? Is it possible with post processing or is my only option save these informations by session id at index time in a separate entity centric index with session id as key?

Thanks, Andreas

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [November 12, 2019, 5:20pm UTC](https://discuss.elastic.co/t/ways-to-see-how-long-a-session-is-online/207485/2 "2019-11-12T17:20:13Z")

</div>

You can use the data transformation APIs to do this. They were introduced as "data frames" in 7.2.0 and are now called "data transforms" [https://www.elastic.co/guide/en/elasticsearch/reference/current/transforms.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/transforms.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 10, 2019, 5:20pm UTC](https://discuss.elastic.co/t/ways-to-see-how-long-a-session-is-online/207485/3 "2019-12-10T17:20:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
