amazon-cloudwatch-logs-for-fluent-bit
amazon-cloudwatch-logs-for-fluent-bit copied to clipboard
[Question]: Is there a way to configure the log_stream_prefix to rotate hourly?
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.
@bernata This is a good feature request. We could support strftime time formatters in the log stream format.
Any updates on this feature? It would be very helpful to be able to "rotate" CloudWatch log streams.
@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.