Search for events
GET<your-unleash-url>/api/admin/search/events
Allows searching for events that match the query parameter criteria.
Request
Query Parameters
Find events by a free-text search query. The query will be matched against the event data payload (if any).
Possible values: Value must match regular expression ^(IS|IS_ANY_OF):(.*?)(,([a-zA-Z0-9_]+))*$
Filter by feature name using supported operators: IS, IS_ANY_OF
Possible values: Value must match regular expression ^(IS|IS_ANY_OF):(.*?)(,([a-zA-Z0-9_]+))*$
Filter by projects ID using supported operators: IS, IS_ANY_OF.
Possible values: Value must match regular expression ^(IS|IS_ANY_OF):(.*?)(,([a-zA-Z0-9_]+))*$
Filter by event type using supported operators: IS, IS_ANY_OF.
Possible values: Value must match regular expression ^(IS|IS_ANY_OF):(.*?)(,([a-zA-Z0-9_]+))*$
Filter by the ID of the event creator, using supported operators: IS, IS_ANY_OF.
Possible values: Value must match regular expression ^(IS):\d{4}-\d{2}-\d{2}$
The starting date of the creation date range in IS:yyyy-MM-dd format
Possible values: Value must match regular expression ^(IS):\d{4}-\d{2}-\d{2}$
The ending date of the creation date range in IS:yyyy-MM-dd format
The number of features to skip when returning a page. By default it is set to 0.
0
The number of feature environments to return in a page. By default it is set to 50. The maximum is 1000.
50
Responses
- 200
eventSearchResponseSchema
- application/json
- Schema
- Example (auto)
Schema
events object[]required
The total count of events
842
{
"events": [
{
"id": 0,
"createdAt": "2023-07-05T12:56:00.000Z",
"type": "feature-created",
"createdBy": "johndoe",
"createdByUserId": 1337,
"environment": "development",
"project": "default",
"featureName": "my.first.feature",
"data": {
"name": "new-feature",
"description": "Flag description",
"type": "release",
"project": "my-project",
"stale": false,
"variants": [],
"createdAt": "2022-05-31T13:32:20.547Z",
"lastSeenAt": null,
"impressionData": true
},
"preData": {
"name": "new-feature",
"description": "Flag description",
"type": "release",
"project": "my-project",
"stale": false,
"variants": [],
"createdAt": "2022-05-31T13:32:20.547Z",
"lastSeenAt": null,
"impressionData": true
},
"tags": [
{
"value": "a-tag-value",
"type": "simple"
}
],
"label": "string",
"summary": "string",
"ip": "192.168.1.1"
}
],
"total": 842
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '<your-unleash-url>/api/admin/search/events' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'