ContainerLogV2

Kubernetes Container logs in V2 schema. This is the successor of ContainerLog. This has a friendlier schema, specifically for Kubernetes orchestrated containers in pods. With this feature enabled, previously split container logs are stitched together and sent as single entries to the ContainerLogV2 table. The schema now supports container log lines of up to to 64 KB. The schema also supports .NET and Go stack traces, which appear as single entries.

Table attributes

Attribute Value
Resource types microsoft.containerservice/managedclusters,
microsoft.kubernetes/connectedclusters,
microsoft.hybridcontainerservice/provisionedclusters
Categories Containers
Solutions AzureResources, ContainerInsights
Basic log Yes
Ingestion-time transformation Yes
Sample Queries Yes

Columns

Column Type Description
_BilledSize real The record size in bytes
Computer string Name of the Computer/Node generating the log.
ContainerId string Container ID of the log source as seen by the Container engine.
ContainerName string Name of the Container generating the log.
_IsBillable string Specifies whether ingesting the data is billable. When _IsBillable is false ingestion isn't billed to your Azure account
KubernetesMetadata dynamic Kubernetes Metadata including podUid, podLabels, podAnnotations and container image details, etc.
LogLevel string Categorize logs based on importance and severity. Possible values: CRITICAL, ERROR, WARNING, INFO, DEBUG, TRACE, UNKNOWN.
LogMessage dynamic Log message from stdout or stderr. Being a dynamic field, json log messages can be queried without parse_json.
LogSource string Source of the Log message. Possible vlaues are stdout or stderr.
PodName string Kubernetes Pod name for the Container generating the log.
PodNamespace string Kubernetes Namespace for the container's pod.
_ResourceId string A unique identifier for the resource that the record is associated with
SourceSystem string The type of agent the event was collected by. For example, OpsManager for Windows agent, either direct connect or Operations Manager, Linux for all Linux agents, or Azure for Azure Diagnostics
_SubscriptionId string A unique identifier for the subscription that the record is associated with
TenantId string The Log Analytics workspace ID
TimeGenerated datetime The timestamp (UTC) of when the log was generated.
Type string The name of the table