aws.lightsail.get_container_log
Example SQL Queries
SELECT * FROMaws.lightsail.get_container_logWHERE"service_name" = 'VALUE'AND "container_name" = 'VALUE';Description
Returns the log events of a container of your Amazon Lightsail container service.
If your container service has more than one node (i.e., a scale greater than 1), then the log events that are returned for the specified container are merged from all nodes on your container service.
Container logs are retained for a certain amount of time. For more information, see Amazon Lightsail endpoints and quotas in the Amazon Web Services General Reference.
Table Definition
| Column Name | Column Data Type |
|---|---|
| container_name Required Input Column The name of the container that is either running or previously ran on the container service for which to return a log. | VARCHAR |
| service_name Required Input Column The name of the container service for which to get a container log. | VARCHAR |
| end_time Input Column The end of the time interval for which to get log data. Constraints:
You can convert a human-friendly time to Unix time format using a converter like Epoch converter. | TIMESTAMP_S |
| filter_pattern Input Column 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:
| VARCHAR |
| page_token Input Column The token to advance to the next page of results from your request. To get a page token, perform an initial GetContainerLog 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. | VARCHAR |
| start_time Input Column The start of the time interval for which to get log data. Constraints:
You can convert a human-friendly time to Unix time format using a converter like Epoch converter. | TIMESTAMP_S |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| log_events An array of objects that describe the log events of a container. | STRUCT( |
Show child fields
| |
| next_page_token The token to advance to the next page of results from your request. A next page token is not returned if there are no more results to display. To get the next page of results, perform another GetContainerLog request and specify the next page token using the pageToken parameter. | VARCHAR |