Learn R Programming

paws.compute (version 0.7.0)

lightsail_get_container_log: Returns the log events of a container of your Amazon Lightsail container service

Description

Returns the log events of a container of your Amazon Lightsail container service.

See https://www.paws-r-sdk.com/docs/lightsail_get_container_log/ for full documentation.

Usage

lightsail_get_container_log(
  serviceName,
  containerName,
  startTime = NULL,
  endTime = NULL,
  filterPattern = NULL,
  pageToken = NULL
)

Arguments

serviceName

[required] The name of the container service for which to get a container log.

containerName

[required] The name of the container that is either running or previously ran on the container service for which to return a log.

startTime

The start of the time interval for which to get log data.

Constraints:

  • Specified in Coordinated Universal Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify 1538424000 as the start time.

You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

endTime

The end of the time interval for which to get log data.

Constraints:

  • Specified in Coordinated Universal Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify 1538427600 as the end time.

You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

filterPattern

The pattern to use to filter the returned log events to a specific term.

The following are a few examples of filter patterns that you can specify:

  • To return all log events, specify a filter pattern of "".

  • To exclude log events that contain the ERROR term, and return all other log events, specify a filter pattern of "-ERROR".

  • To return log events that contain the ERROR term, specify a filter pattern of "ERROR".

  • To return log events that contain both the ERROR and Exception terms, specify a filter pattern of "ERROR Exception".

  • To return log events that contain the ERROR or the Exception term, specify a filter pattern of "?ERROR ?Exception".

pageToken

The token to advance to the next page of results from your request.

To get a page token, perform an initial get_container_log request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.