Closed furudean closed 5 years ago
As the functionality to print out the groups exists, you can do this already! Just have to get creative using other tools.
You could of course use grep
itself but for situations like this I really like fzf. In bash (give it a try!):
saw watch $(saw groups | fzf)
This is awesome, thanks! Time to make an alias.
Hi, first of all - awesome tool!
At my company, we sometimes have a lot of log groups, and long names for groups. This leads to a lot of copy paste when starting to watch or read a log. It would be awesome if you could write a part of a groups name to automatically select that group.
If you have
/aws/lambda/company-project-backend-getSomething
, searchinggetSomething
would pick this group, provided it's the only match. If there are multiple matches then it could let you pick from a list of matching logs.Alternatively a
--grep
flag/argument or similar could be used with the command to let you enable this functionality.