Skip to main content

log_records

Creates, updates, deletes, gets or lists a log_records resource.

Overview

Namelog_records
TypeResource
Idaws.logs.log_records

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
log_recordobjectThe requested log event, as a JSON string.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_log_recordselectregionRetrieves all of the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs. The full unparsed log event is returned within @message.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves all of the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs. The full unparsed log event is returned within @message.

SELECT
log_record
FROM aws.logs.log_records
WHERE region = '{{ region }}' -- required
;