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

[Question]: Is there a way to configure the log_stream_prefix to rotate hourly? #87

Open
bernata opened this issue Aug 28, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@bernata
Copy link

bernata commented Aug 28, 2020

I was wondering if there is a way to have the cloudwatch log stream within a log group rotate hourly?
For example, if i could define the log_stream_prefix to be service-%MM-%DD-%HH and have the log stream name contain the month, day, year?

The goal is I would like the cloudwatch log group to have a stream per hour.

Thanks.

@PettitWesley
Copy link
Contributor

@bernata This is a good feature request. We could support strftime time formatters in the log stream format.

@PettitWesley PettitWesley added the enhancement New feature or request label Aug 29, 2020
@andrei-cruceru
Copy link

Any updates on this feature? It would be very helpful to be able to "rotate" CloudWatch log streams.

@PettitWesley
Copy link
Contributor

@andrei-cruceru We are tracking this feature request, however, there are many other high priority feature and ops items on our backlog as well. If you'd be willing to try to implement this, it'd be highly appreciated, and I think it shouldn't be too difficult, this plugin is in Go and the existing templating feature should make it easy to add more customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants