Skip to content

Get Log Record

cloudwatchlogs_get_log_record R Documentation

Retrieves all of the fields and values of a single log event

Description

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⁠.

Usage

cloudwatchlogs_get_log_record(logRecordPointer, unmask)

Arguments

logRecordPointer

[required] The pointer corresponding to the log event record you want to retrieve. You get this from the response of a get_query_results operation. In that response, the value of the ⁠@ptr⁠ field for a log event is the value to use as logRecordPointer to retrieve that complete log event record.

unmask

Specify true to display the log event fields with all sensitive data unmasked and visible. The default is false.

To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission.

Value

A list with the following syntax:

list(
  logRecord = list(
    "string"
  )
)

Request syntax

svc$get_log_record(
  logRecordPointer = "string",
  unmask = TRUE|FALSE
)