Is it possible to strip out identifiers from RESTful service URLs?

Avatar
  • updated
  • Answered
When analyzing logs of RESTful services, URLs against different data entities appear as different pages (e.g. http://domain.com/hrservice/employee/... and http://domain.com/hrservice/employee/... refer to invoking the same service method, employee, of the HR Service, against two different employee ids). While it is useful to count such unique calls, I would also like to obtain stats on the individual services - e.g. hits of the employee service as a total over time. Is this possible with version 7.6?
url stripping rest restful
Avatar
Michael
We have added support for reporting on modified URLs in version 7.7 (Professional and Enterprise editions). You need to do the following to get statistics on the URL http://domain.com/hrservice/employee/ without IDs:

1. Open Options > Report > Tables.
2. Create a new table. Choose "File name" as main data on the "Data" page, then click the "Custom..." button to the right of the "Main data" combo box.
3. Enable modification rules and enter the following rule:

/hrservice/employee/* $= /hrservice/employee/

In this case all /hrservice/employee/* requests will be grouped to one entry. You can also enter rules for other services, or create more complex rules using regular expressions - you can find information on rule syntax in the program help.
Avatar
Michael
It's not possible to exclude parts of URLs now, only query parameters can be excluded. We'll consider adding support for such feature in the future versions of the program.