Hi Team,
I have collected some user behavior data in elasticsearch end user did on Web UI. I have hundreds of events in ES and below are the event' fields .
- userId (which is the login user)
 - actionType (which represents the action end user did on UI, for example, search, saved search, export search result etc..)
 - timestamp (which means when the UI action happens)
 - module (means which module he did the action)
 - page ( means which page he did the on Web UI)
 
For example, I have below sample events,
time stamp,userId,module,page,actionType
14:01:01,user1,scm,ts,open
14:01:01,user2,scm,ts,open
14:01:02, user1,scm,search
14:01:03, user1,scm,save
14:01:02, user2,scm,export
14:01:06, user1,scm,open
14:01:06,user1,scm,export
There are two user scenarios based on above events:
user1- open-search-save
user1- open-export
user2- open-export
Now the visiualization in kibana I want to see is
user scenario             count
**open-search-save         1 **
open-export                   2
How kibana to achieve this??? two questions here:
- How to write the script fields to chain the values of actionType in different events for a user
 - Can Kibana aggregate based on the script fields?