containers_logs
Creates, updates, deletes, gets or lists a containers_logs
resource.
Overview
Name | containers_logs |
Type | Resource |
Id | azure.container_instances.containers_logs |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
content | string | The content of the log. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | subscriptionId , resourceGroupName , containerGroupName , containerName | tail , timestamps | Get the logs for a specified container instance in a specified resource group and container group. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
containerGroupName | string | The name of the container group. |
containerName | string | The name of the container instance. |
resourceGroupName | string | The name of the resource group. |
subscriptionId | string | Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
tail | integer (int32) | The number of lines to show from the tail of the container instance log. If not provided, all available logs are shown up to 4mb. |
timestamps | boolean | If true, adds a timestamp at the beginning of every line of log output. If not provided, defaults to false. |
SELECT
examples
- list
Get the logs for a specified container instance in a specified resource group and container group.
SELECT
content
FROM azure.container_instances.containers_logs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND containerGroupName = '{{ containerGroupName }}' -- required
AND containerName = '{{ containerName }}' -- required
AND tail = '{{ tail }}'
AND timestamps = '{{ timestamps }}'
;