...
Table of Contents | ||
---|---|---|
|
Enabling the stream for activity monitoring
If you want to use activity dashboard to search your events, then you need to define the activityId field as the ‘FACET’ field and enable the indexing for that field as given below.
...
Also you can search the activity by field, and if you want to search by any particular fields other than timestamp, then you also need to index them appropriately. In below provided example the user is required to search by meta_host
, meta_http_method
, meta_message_type
,
and operation_name
. Therefore the user have to enable indexes to those fields.
Publish events with the activity ID
As we have mentioned above, the event needs to have mandatory ‘activityId’ field in the correlation data of the event and the field needs to be as JSON string to use it as FACET type. Therefore convert your activityId as JSON string and publish to WSO2 DAS. For example, sample JSON formed activity shown below.
[ 1cecbb16-6b89-46f3-bd2f-fd9f7ac447b6 ]
Using the activity monitoring dashboard
If you want to perform the search within any time period, then select the data and time for ‘From time’ and ‘To time’ respectively. If you don’t select any time duration for the field, then it will search through the full time range. But it’s advisable to use this time range, if you have events collected and hence searching through the entire list of events will have some processing/memory needs.
...