Is there any better command line tail tool for aws cloudwatch logs? I created one for a try

2

I missed the tail -f of old days. aws logs tail command is the closest solution. It has two limitations: 1. It can't format timestamp to your local time. 2. it can't filter by arbitrary string inside the log stream names (it only filter prefix)

I just created one and now I am happily using it in my cloudshell. I wish I am not totally reinvented the wheel, but I couldn't find an quick solution. https://github.com/xychenmsn/awstool

It is basically just a shell script file and the basic usage is: tail_aws_logs -g <log_group_name> -s <stream_pattern> -h <history_minutes> -t <timezone> -p <poll_interval_seconds>

Please give some feedback.

1 回答
0

Here are the resources I'm familiar with:

profile picture
专家
已回答 3 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则