尾aws lambda / cloudwatch日志 [英] tailing aws lambda/cloudwatch logs

查看:134
本文介绍了尾aws lambda / cloudwatch日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

了解了如何从另​​一个答案

是否可以拖尾它们? (手动按刷新很麻烦)

Is it possible to tail them? (manually pressing refresh is cumbersome)

推荐答案

因为您提到 tail ing,我希望您对使用CLI工具在终端上工作感到满意。

Since you mentioned tail-ing, I'm expecting that you are comfortable with working on the terminal with CLI tools.

您可以安装 awslogs 在本地并将其用于 tail Cloudwatch。

You can install awslogs locally and use it to tail Cloudwatch.

例如

$ awslogs get /aws/lambda/my-api-lambda ALL --watch --profile production

除了不需要刷新任何内容(这就是 tail 的含义for),我也希望您不必担心在不同的LogGroup之间跳转(与在CloudWatch控制台中不同)。

Aside from not needing to refresh anything anymore (that's what tail is for), I also like that you don't have to worry about jumping between different LogGroups (unlike in the CloudWatch console).

这篇关于尾aws lambda / cloudwatch日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆