# Session Counter over time Visualisation

**URL:** <https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299>\
**Category:** Kibana\
**Created:** [August 25, 2020, 1:54pm UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299 "2020-08-25T13:54:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [August 25, 2020, 1:54pm UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299/1 "2020-08-25T13:54:15Z")

</div>

Hi,

I have the following Data:  
Timestamp, SessionState (Opened), SessionID  
Timestamp, SessionState (Closed), SessionID

And I need to visualize the amount of open sessions at "timeframe". Is this somehow possible with Kibana? Maybe some Tvsb curve? Vega is a little bit too much for my sry.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [August 25, 2020, 3:53pm UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299/2 "2020-08-25T15:53:24Z")

</div>

Hello @gruselglatz

How is your data being indexed? Perhaps we could get the data into Elasticsearch like -

SessionID, TimestampOpened, TimestampClosed

which would make the query simple.

---

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [August 26, 2020, 5:44am UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299/3 "2020-08-26T05:44:08Z")

</div>

Hey @mattkime thanks for the fast answer.

Unfortunately i only get the messages like this:

2020-08-26 07:41:23.609 [4] 00000000 Client (host=stw4ts1, sessionId=4e2): Open WebSocket connection  
2020-08-26 07:41:26.813 [4] 00000000 Client (host=stw4ts1, sessionId=4e2, applicationId=WebApp): Close WebSocket connection

Is this then even possible? With some math or scripting?

Thanks

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [August 26, 2020, 11:44am UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299/4 "2020-08-26T11:44:57Z")

</div>

You either need to change how you ingest the data or post process the documents.

Here's a discussion around a similar need - [Calculation time difference between two document](https://discuss.elastic.co/t/calculation-time-difference-between-two-document/174876)

---

<div class="post-metadata">

**Author:** ![gruselglatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gruselglatz/32/42675_2.png) [@gruselglatz](https://discuss.elastic.co/u/gruselglatz)\
**Post date:** [August 28, 2020, 5:05am UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299/5 "2020-08-28T05:05:15Z")

</div>

Thanks, I finally convinced them to give the APM-Agent a try, and i collect the Stats now via JMX. 🙂

---

<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:** [September 25, 2020, 5:05am UTC](https://discuss.elastic.co/t/session-counter-over-time-visualisation/246299/6 "2020-09-25T05:05:15Z")

</div>

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