One idea is to get the log, but not its content. Instead we could have sql compute the content length for us. The reason is that some logs are megs in size which we just don't use.