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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ