令牌无效 AWS 日志时出错



我已经为此斗争了几个小时,这让我发疯了。我安装了日志代理并正确设置了它。

我可以通过此命令访问实例。 eb ssh

但是,当我sudo service awslogs restart运行命令时,我会收到奇怪的错误,例如

 2017-06-12 16:31:41,899 - cwlogs.push.publisher - WARNING - 31909 -   
 Thread-7 - Caught exception: An error occurred 
 (UnrecognizedClientException) when calling the PutLogEvents operation: 
 The security token included in the request is invalid.
 2017-06-12 16:31:41,899 - cwlogs.threads - ERROR - 31909 - Thread-7 - 
 Exception caught in <EventBatchPublisher(Thread-7, started daemon 
 140242458298112)>
 Traceback (most recent call last):

我已经多次更改凭据,但都无济于事。

另外,我在awslogs.log文件中收到此错误:

2017-06-12 16:31:40,862 - cwlogs.push.reader -
WARNING - 31909 - Thread-8 - Fall back to previous event time: 
{'timestamp': 1497246644000, 'start_position': 7142L, 'end_position': 
7246L}, previousEventTime: 1497246644000, reason: timestamp could not 
be parsed from message.

我使用以下格式:

[/var/log/tomcat8/catalina.out]
datetime_format = %d-%b-%Y %H:%M:%S
file = /var/log/tomcat8/catalina.out
buffer_duration = 5000
log_stream_name = {instance_id}
initial_position = start_of_file
log_group_name = Catalina

此时的任何帮助将不胜感激。

请将"sudo"附加到"aws configure"命令中。

相关内容

最新更新