Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream management #320

Open
pproux opened this issue Oct 12, 2020 · 2 comments
Open

Stream management #320

pproux opened this issue Oct 12, 2020 · 2 comments

Comments

@pproux
Copy link

pproux commented Oct 12, 2020

Hi,

Currently the stream expression is (obviously) an expression so it takes lot of times to search and match against all existing streams.
It would be great to have a way specifying that we don't want a "search and match" but only "get me that stream".

Here is a time comparaison between awslogs and aws logs to get the same thing

admin@xxxxxxx:~$ time /home/admin/.local/bin/awslogs get /aws/transfer/s-047f907xxxxxxxxxxx global-dva-ci.0258452002e64965
[...]

real	0m47.783s
user	0m6.016s
sys	0m0.244s
admin@xxxxxxx:~$ time aws logs get-log-events --log-group-name "/aws/transfer/s-047f907xxxxxxxxxxx" --log-stream-name "global-dva-ci.0258452002e64965" --query 'events[].[message]' --output text
[...]

real	0m0.920s
user	0m0.548s
sys	0m0.064s

I could use aws logs in that case of course but awslogs is better for printing human readable timestamp.

@Miksu82
Copy link

Miksu82 commented Nov 12, 2020

FYI: There is a pull request that fixes this #319. I don't know will it get merged, but if you want this functionality you can manually build from the fork that initiated the pull request https://github.com/Miksu82/awslogs

@kurrak
Copy link

kurrak commented Apr 12, 2021

@Miksu82 thank you for pointing to this PR. It looks exactly as something we need too, since we have thousands of log streams in single group and we know exactly the name of stream. Currently awslogs simply never (at least in an hour ;)) return any result.

@jorgebastida do you intend to merge #319 anytime soon?

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

No branches or pull requests

3 participants