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 Antwort
0

Here are the resources I'm familiar with:

profile picture
EXPERTE
beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen