相关疑难解决方法(0)

Amazon CloudWatchLogs putLogEvents在PHP中提供了错误tooOldLogEventEndIndex

嗨伙计们,我正试图将登录亚马逊CloudWatchLogs这样:

$response2 = $amzonLoger->putLogEvents([

            'logGroupName' => 'myGroup',
            'logStreamName' => 'myStream',
            'logEvents' => [
                [
                    'timestamp' => time(),
                    'message' => 'message'
                ],
            ],
            'sequenceToken' => lastToken,
        ]);
        var_dump($response2);
Run Code Online (Sandbox Code Playgroud)

但总是我有这样的回应:

bject(Guzzle\Service\Resource\Model)#289 (2) { ["structure":protected]=> NULL ["data":protected]=> array(2) { ["nextSequenceToken"]=> string(56) "495401145812734324234234236420825819917076850" ["rejectedLogEventsInfo"]=> array(1) { ["tooOldLogEventEndIndex"]=> int(1) } } }
Run Code Online (Sandbox Code Playgroud)

你可以帮我理解是什么意思["rejectedLogEventsInfo"] => array(1){["tooOldLogEventEndIndex"] => int(1),我将非常感谢你的帮助.

php amazon-web-services zend-framework2 amazon-cloudwatch

9
推荐指数
2
解决办法
2991
查看次数