09 Nov 2018 01:37 AM - last edited on 27 Apr 2021 04:32 PM by MaciejNeumann
Dynatrace has a feature that sends user session data directly to Elasticsearch. However, there isn't much information about that feature. Does it send the data to Elasticsearch every time there's a new session or the data will be sent, for example, every two hours?
Solved! Go to Solution.
09 Nov 2018 07:01 AM
Based on my observation, user session data is sent out just after the user session has finished (it is not a live session anymore). It won't send out any live session data as they may change during the session.
The actual time depends on how your sessions are being handled plus a short time to finalize the session. For a session ending with a timeout, it is 30 minutes of inactivity. If you close the session explicitly by calling dtrum.endSession() then it just this short time (about 1-2 minutes).
12 Nov 2018 03:31 PM
Exactly, sessions are sent when finished. After this, they are sent in bulk at least over the next 30 seconds, so should appear quickly on your end.
Please note that Elasticsearch also has a configurable delay until data becomes visible, the setting per index is called the "index refresh", by default it is 5 seconds, but could be set much higher in some installations.