std*_*out 11 amazon-cloudwatch
我有一个包含多个日志流(来自多个 EC2 实例)的日志组。有没有办法简单地“拖尾”组中的合并日志?如果我单击显示合并日志的“搜索事件”,但跳转到日志末尾的按钮是灰色的。我必须手动插入日期和时间。我还尝试了 aws cli,但aws logs get-log-events需要指定单个日志流名称。
现在可以直接使用 AWS CLI v2。例如:
aws logs tail --since 1d --follow /aws/lambda/my_func
Run Code Online (Sandbox Code Playgroud)
将跟踪并持续观察 1 天前和未来的 CloudWatch 日志。
更多信息:https : //awscli.amazonaws.com/v2/documentation/api/latest/reference/logs/tail.html
| 归档时间: |
|
| 查看次数: |
8918 次 |
| 最近记录: |