#
/logs
#
Route Details
#
GET /logs
Retrieves all logs stored in the database, filtered according to the query parameters provided and ordered by latest first.
Only available if both database.enabled
and database.features.logs.enabled
options are set to true in config.yaml
.
#
Request
Method:
HTTP GET
Query parameters, allows filtering by parameters provided (at least one or more):
path
: Get logs of a file/directory (prioritized overinpath
)inpath
: Get logs within a directorytype
: Get logs of a certain event type, seelist .user
: Get logs of events made by a user
#
Response
Example 200 response body:
[
{
"log_id": 1,
"username": null,
"display_name": "deafnv",
"ip_address": "111.111.11.111",
"file_id": "1688849860271907",
"event_type": "RETRIEVE",
"event_path": "/testdir/test.jpg",
"event_old": null,
"event_new": null,
"event_data": null,
"created_at": "2023-07-09T11:36:11.948Z"
}
]