Logs information

This chapter focuses on the logs information.

get 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

_type

String

the type of the entity

log_file_names

Array

all the log file names

_links

Object

related links

Relation Description

self

link to the logs information

get 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

Table 1. /api/rest/latest/logs/{logFileName}/download
Parameter Description

logFileName

the name of the log file to download