Returns the log events of a container of your Amazon Lightsail container service
Source:R/lightsail_operations.R
lightsail_get_container_log.RdReturns 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
1538424000as 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
1538427600as 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
ERRORterm, and return all other log events, specify a filter pattern of"-ERROR".To return log events that contain the
ERRORterm, specify a filter pattern of"ERROR".To return log events that contain both the
ERRORandExceptionterms, specify a filter pattern of"ERROR Exception".To return log events that contain the
ERRORor theExceptionterm, 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_logrequest. 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.