Skip to content

Creates a lookup table by uploading CSV data or from CloudWatch Logs query results

Description

Creates a lookup table by uploading CSV data or from CloudWatch Logs query results. You can use lookup tables to enrich log data in CloudWatch Logs queries with reference data such as user details, application names, or error descriptions.

The table name must be unique within your account and Region. You must specify either tableBody or queryId, but not both. If you use tableBody, the CSV content must include a header row with column names, use UTF-8 encoding, and not exceed 10 MB.

Usage

cloudwatchlogs_create_lookup_table(lookupTableName, description,
  tableBody, queryId, kmsKeyId, tags)

Arguments

  • lookupTableName

    [required] The name of the lookup table. The name must be unique within your account and Region. The name can contain only alphanumeric characters and underscores, and can be up to 256 characters long.

  • description

    A description of the lookup table. The description can be up to 1024 characters long.

  • tableBody

    The CSV content of the lookup table. The first row must be a header row with column names. The content must use UTF-8 encoding and not exceed 10 MB.

    You must specify either tableBody or queryId, but not both.

  • queryId

    The ID of a completed or cancelled CloudWatch Logs query whose results populate the lookup table. A cancelled query populates the table with the partial results that were available when the query was stopped.

    You must specify either tableBody or queryId, but not both.

  • kmsKeyId

    The ARN of the KMS key to use to encrypt the lookup table data. If you don't specify a key, the data is encrypted with an Amazon Web Services-owned key.

  • tags

    A list of key-value pairs to associate with the lookup table. You can associate as many as 50 tags with a lookup table. Tags can help you organize and categorize your resources.

Value

A list with the following syntax:

list(
  lookupTableArn = "string",
  createdAt = 123
)

Request syntax

svc$create_lookup_table(
  lookupTableName = "string",
  description = "string",
  tableBody = "string",
  queryId = "string",
  kmsKeyId = "string",
  tags = list(
    "string"
  )
)