fluent-plugins-nursery / fluent-plugin-cloudwatch-logs

CloudWatch Logs Plugin for Fluentd
MIT License
201 stars 141 forks source link

Add start-from-head when starttime, endtime, or next_token are present #235

Closed codertao closed 3 years ago

codertao commented 3 years ago

The fix we're using for #234 , based on notes from https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html#API_GetLogEvents_RequestSyntax ,

 startFromHead
    If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
    If you are using nextToken in this operation, you must specify true for startFromHead.
    Type: Boolean
    Required: No