Skip to content

Conversation

@JeanMertz
Copy link

@JeanMertz JeanMertz commented Nov 15, 2019

With this change, the first argument to the command is parsed as a
regular expression and matched against the list of available log groups.
For each matched log group, the relevant command is executed in
parallel.

The following commands support this pattern:

  • get
  • streams
  • watch

The log group name is added to the formatted log output, to distinguish
logs from different log groups.

If you want to get an idential result as what you got before this
commit, you would have to wrap your group name in regular expression
begin and end tokens, meaning this:

saw stream "my-log-group"

Must now be written as:

saw stream "^my-log-group$"

Example output with two groups (test and test2):

saw watch test
[2019-11-15T23:03:05+01:00] (test:stream) Example Event 1
[2019-11-15T23:03:05+01:00] (test2:stream2) Example Event 1

Note that the saw get command makes no attempt to time-sort the events cross-groups.

Closes #38

With this change, the first argument to the command is parsed as a
regular expression and matched against the list of available log groups.
For each matched log group, the relevant command is executed in
parallel.

The following commands support this pattern:

* `get`
* `streams`
* `watch`

The log group name is added to the formatted log output, to distinguish
logs from different log groups.

If you want to get an idential result as what you got before this
commit, you would have to wrap your group name in regular expression
begin and end tokens, meaning this:

    saw stream "my-log-group"

Must now be written as:

    saw stream "^my-log-group$"

Signed-off-by: Jean Mertz <[email protected]>
@SodaGremlin
Copy link

+1, I would love to see this as part of the project.

@rgaino
Copy link

rgaino commented May 4, 2021

+1 from me too, this would be amazing.

@noudadrichem
Copy link

+1 on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How can I watch multiple log groups at once?

4 participants