How do I filter/search activity logs?

Question

How can I filter activity logs to, for example, see who has logged into a particular tenant over a specified time period?

Answer

Below is the API for filtering on the necessary activity logs:

 GET  https://<environment name>/reltio/api/<tenant id>/activities

You can use the filters option which is a sample API for reference with specific dates applied.


GET https://<environment name>/reltio/api/<tenant id>/activities?filter=((gte(timestamp,"1566153000000") and lte(timestamp,"1566239400000")) and startsWith(label, "USER_LOGIN"))&max=5

In the above example, you have asked to filter by the following items

  • Get activity between Sunday, August 18, 2019, 2:30:00 PM to Monday, August 19, 2019, 2:30:00 PM
  • Get all activity where the label starts with "USER_LOGIN"
  • Only show a maximum of 5 records.

Note:  Users MUST have a "tenant_admin" role to get the activity details, as mentioned in the second documentation link below.

References

https://docs.reltio.com/entitiesapi/entitiesfiltering.html?hl=filter

https://documentation.reltio.com/security/systemrolesbasedonpermissions.html?hl=role%2Cactivities

https://docs.reltio.com/activitylogapi/activitylogapi.html?hl=activities%2Capi

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.