首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >关联AWS日志时出现无效令牌错误

关联AWS日志时出现无效令牌错误
EN

Stack Overflow用户
提问于 2017-06-13 01:28:27
回答 0查看 753关注 0票数 1

我已经和它斗争了几个小时了,它快把我逼疯了。我安装了日志代理并正确设置了它。

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

然而,当我运行命令sudo service awslogs restart时,我得到了奇怪的错误,比如

代码语言:javascript
复制
 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文件中得到以下错误:

代码语言:javascript
复制
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.

我使用以下格式:

代码语言:javascript
复制
[/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

在这一点上,任何帮助都将不胜感激。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44505375

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档