Get Relational Database log Events
| lightsail_get_relational_database_log_events | R Documentation |
Returns a list of log events for a database in Amazon Lightsail¶
Description¶
Returns a list of log events for a database in Amazon Lightsail.
Usage¶
lightsail_get_relational_database_log_events(relationalDatabaseName,
logStreamName, startTime, endTime, startFromHead, pageToken)
Arguments¶
relationalDatabaseName[required] The name of your database for which to get log events.
logStreamName[required] The name of the log stream.
Use the
get relational database log streamsoperation to get a list of available log streams.startTimeThe start of the time interval from which to get log events.
Constraints:
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input
1538424000as the start time.
endTimeThe end of the time interval from which to get log events.
Constraints:
Specified in Coordinated Universal Time (UTC).
Specified in the Unix time format.
For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input
1538424000as the end time.
startFromHeadParameter to specify if the log should start from head or tail. If
trueis specified, the log event starts from the head of the log. Iffalseis specified, the log event starts from the tail of the log.For PostgreSQL, the default value of
falseis the only option available.pageTokenThe token to advance to the next or previous page of results from your request.
To get a page token, perform an initial
get_relational_database_log_eventsrequest. If your results are paginated, the response will return a next forward token and/or next backward token that you can specify as the page token in a subsequent request.
Value¶
A list with the following syntax:
list(
resourceLogEvents = list(
list(
createdAt = as.POSIXct(
"2015-01-01"
),
message = "string"
)
),
nextBackwardToken = "string",
nextForwardToken = "string"
)