Skip to content

/AWS1/CL_LSA=>GETRELATIONALDATABASELOGEVTS()

About GetRelationalDatabaseLogEvents

Returns a list of log events for a database in Amazon Lightsail.

Method Signature

IMPORTING

Required arguments:

IV_RELATIONALDATABASENAME TYPE /AWS1/LSARESOURCENAME /AWS1/LSARESOURCENAME

The name of your database for which to get log events.

IV_LOGSTREAMNAME TYPE /AWS1/LSASTRING /AWS1/LSASTRING

The name of the log stream.

Use the get relational database log streams operation to get a list of available log streams.

Optional arguments:

IV_STARTTIME TYPE /AWS1/LSAISODATE /AWS1/LSAISODATE

The 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 1538424000 as the start time.

IV_ENDTIME TYPE /AWS1/LSAISODATE /AWS1/LSAISODATE

The 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 1538424000 as the end time.

IV_STARTFROMHEAD TYPE /AWS1/LSABOOLEAN /AWS1/LSABOOLEAN

Parameter to specify if the log should start from head or tail. If true is specified, the log event starts from the head of the log. If false is specified, the log event starts from the tail of the log.

For PostgreSQL, the default value of false is the only option available.

IV_PAGETOKEN TYPE /AWS1/LSASTRING /AWS1/LSASTRING

The token to advance to the next or previous page of results from your request.

To get a page token, perform an initial GetRelationalDatabaseLogEvents request. 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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSAGETRELATIONALDAT09 /AWS1/CL_LSAGETRELATIONALDAT09