Skip to content

Adding command line argument to disable listing of all log streams - #319

Open
Miksu82 wants to merge 1 commit into
jorgebastida:masterfrom
Miksu82:master
Open

Adding command line argument to disable listing of all log streams#319
Miksu82 wants to merge 1 commit into
jorgebastida:masterfrom
Miksu82:master

Conversation

@Miksu82

@Miksu82 Miksu82 commented Oct 1, 2020

Copy link
Copy Markdown

In case where there are many many log streams, iterating through all of them takes forever which makes the stream argument useless if exact stream name is known.

This PR adds a new command line parameter to indicate that the stream parameter is exact match and awslogs shouldn't iterate through all streams.

I also considered an option where first an exact match would be tried and if found use that instead of iterating. But that would be a breaking backward compatibility so I decided to use a flag.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.2%) to 91.579% when pulling 3b0154e on Miksu82:master into 0886184 on jorgebastida:master.

@Miksu82 Miksu82 mentioned this pull request Nov 12, 2020
@mschfh

mschfh commented Apr 24, 2024

Copy link
Copy Markdown

@jorgebastida Please consider merging this PR, is there anything else needed to move it forward?

@takehark-amzn

Copy link
Copy Markdown

My environment has 400K+ streams in a log group so it takes minutes to list all streams and start retrieving the events in a stream. @jorgebastida Please consider merging this PR.

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.

4 participants