GetLogRecord
Source:
src/AWS/Logs/GetLogRecord.ts
Runtime binding for logs:GetLogRecord (CloudWatch Logs Insights).
Bind this operation to the LogGroup an Insights query ran against to
fetch the complete log record behind a query-result row: every row returned
by GetQueryResults carries a @ptr
field that identifies the record.
Logs Insights
Section titled “Logs Insights”const getLogRecord = yield* AWS.Logs.GetLogRecord(logGroup);
const ptr = row.find((field) => field.field === "@ptr")?.value;const { logRecord } = yield* getLogRecord({ logRecordPointer: ptr! });// logRecord["@message"] is the full unparsed log line