Ways to see how long a session is online?

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

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