Logs information
This chapter focuses on the logs information.
Get all the existing log file names
A GET to /logs returns a list of existing log file names. This endpoint is not available for users of the SquashTM Cloud offer.
HTTP request
GET /api/rest/latest/logs HTTP/1.1
Accept: application/json
Host: localhost:8080
Path parameters
Snippet path-parameters not found for operation::RestLogControllerIT/find-all-log-file-names
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 196
{
"_type" : "logs-info",
"log_file_names" : [ "squash-tm.log", "squash-tm.log.20251216" ],
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/rest/latest/logs"
}
}
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
the type of the entity |
|
|
all the log file names |
|
|
related links |
Links
| Relation | Description |
|---|---|
|
link to the logs information |
Download a specific log file
A GET to /logs/{logFileName}/download downloads the specified log file. This endpoint is not available for users of the SquashTM Cloud offer.
HTTP request
GET /api/rest/latest/logs/squash-tm.log/download HTTP/1.1
Content-Type: text/plain
Accept: text/plain
Host: localhost:8080
Path parameters
| Parameter | Description |
|---|---|
|
the name of the log file to download |