Search Operation Logs
Endpoint to search operation logs.
Request
- Base URLhttps://api.kontainer.com/jsonapi/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Define the FROM timestamp. Examples: filter[timestamp][gte]='2024-03-01 12:00:00' OR filter[timestamp][gte]='2024-03-01T12:00:00+01:00'. ISO-8601 is accepted, and a UTC designator or a UTC offset is converted to the application timezone
Define the TO timestamp. Examples: filter[timestamp][lte]='2024-04-01 23:59:59' OR filter[timestamp][lte]='2024-04-01T23:59:59+01:00'. ISO-8601 is accepted, and a UTC designator or a UTC offset is converted to the application timezone
Define the per page size. (defaults to 100, limit is 500) Example: page[size]=10
Define the page number. (defaults to 1) Example: page[number]=1
Result sorting options: timestamp. Example : sort=timestamp, or sort=-timestamp (use the minus sign to sort in descending order)</br>
Response
success
Example response
{
"data": [
{
"type": "operation_log",
"id": "66349c51301f8eeb45067122",
"attributes": {
"id": "66349c51301f8eeb45067122",
"event": "file_renamed",
"source": "web",
"timestamp": "2024-01-01 12:00:00",
"detail": {
"old_name": "file1.txt",
"new_name": "file2.txt"
},
"causer": {
"type": "User",
"causer_id": "123",
"username": "luca.brasi@example.com"
},
"process_meta": {
"process_id": "01HTH88B9VS6DCNPVXKVCZBJ8V",
"server_name": "kontainer.com",
"client_ip": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}
}
}
],
"links": {
"self": "https://example.kontainer.com/jsonapi/v2/statistics/logins?page%5Bnumber%5D=2",
"first": "https://example.kontainer.com/jsonapi/v2/statistics/logins?page%5Bnumber%5D=1",
"last": "https://example.kontainer.com/jsonapi/v2/statistics/logins?page%5Bnumber%5D=30",
"prev": "https://example.kontainer.com/jsonapi/v2/statistics/logins?page%5Bnumber%5D=1",
"next": "https://example.kontainer.com/jsonapi/v2/statistics/logins?page%5Bnumber%5D=3"
},
"meta": {
"total": 870,
"count": 30,
"per_page": 30,
"current_page": 2,
"total_pages": 29,
"sort": "-date"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.