Logs, Metrics & Events

Returns up to 100 lines of the app's output, newest first by default. How far back you can read depends on your bundle plan's log retention. To page through logs, move start or end past the last line you received. Team permission: any project permission.

get/v2/projects/{project_id}/logs

Request

  • Base URL
    https://api.liara.ir
  • URL
    https://api.liara.ir/v2/projects/{project_id}/logs
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The app's name.

Query parameters

teamIDstring

24-character hexadecimal ID.

Run the request in the context of a team you belong to, instead of your personal account.

startinteger

Start of the range, in Unix seconds. It can't be further back than your bundle plan's log retention. If omitted, the last hour is used.

endinteger

End of the range, in Unix seconds. Defaults to now. Must be after start.

direction'backward' | 'forward'

backward returns the newest entries first, forward the oldest first.

appletIdstring

Only include one instance of the app (an appletId from a previous response). Can't be combined with releaseId.

releaseIdstring

Only include one release. Can't be combined with appletId.

searchstring

Only return lines containing this text. At least 3 characters.

last_linesboolean

Send true to get the newest lines from your whole retention period, ignoring start and direction.

Response

Log lines, grouped by instance and release.

Changes