log_records
Creates, updates, deletes, gets or lists a log_records resource.
Overview
| Name | log_records |
| Type | Resource |
| Id | aws.logs.log_records |
Fields
The following fields are returned by SELECT queries:
- get_log_record
| Name | Datatype | Description |
|---|---|---|
log_record | object | The requested log event, as a JSON string. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_log_record | select | region | 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. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_log_record
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
;