downloadDbLogFilePortion

Downloads all or a portion of the specified log file, up to 1 MB in size.

This command doesn't apply to RDS Custom.

This operation uses resources on database instances. Because of this, we recommend publishing database logs to CloudWatch and then using the GetLogEvents operation. For more information, see GetLogEvents in the Amazon CloudWatch Logs API Reference.

Samples


fun main() { 
   //sampleStart 
   // The following example downloads only the latest part of your log file.
val resp = rdsClient.downloadDbLogFilePortion {
    dbInstanceIdentifier = "test-instance"
    logFileName = "log.txt"
} 
   //sampleEnd
}