I've document structure like
username : abc
login_timestamp : 2014-04-11 11:05:00 AM
logout_timestamp : 2014-04-11 11:30:00 AM
username : def
login_timestamp : 2014-04-11 11:15:00 AM
logout_timestamp : 2014-04-11 11:45:00 AM
username : xyz
login_timestamp : 2014-04-11 12:10:00 PM
logout_timestamp : 2014-04-11 01:15:00 PM
I would like to calculate number of concurrent user sessions for a given
date. For example if login_timestamp/logout_timestamp of one user overlaps
with login_timestamp/logout_timestamp of other user then they are said to
have concurrent session and in above example, users abc and def are
having concurrent sessions. Hence output should have 2 against 2014-04-11
Is it possible in es and if so then can anybody help to form a query for
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/84a9e732-5f1b-4480-ab55-e95789813d6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.