I have 1 instance that use the following awslogs configuration file:
[general]
state_file = /var/lib/awslogs/agent-state
[logstream-0]
log_stream_name = controller
log_group_name = robots/controller
file = /mnt/data/log/controller.log
initial_position = start_of_file
[logstream-1]
log_stream_name = catcher
log_group_name = robots/catcher
file = /mnt/data/log/catcher.log
initial_position = start_of_file
CloudWatch now holds 2 log groups (each of them have one log stream inside):
robots/controller:
log stream :
controllerrobots/catcher:
log stream :
catcher
My goal here is to create a new log stream everyday (by timestamp of course).
Should look like this (Datetime format is not really matter):
robots/controller:
log streams :
controller_2020/12/24 controller_2020/12/23 controller_2020/12/22robots/catcher:
log streams :
catcher_2020/12/24 catcher_2020/12/23 catcher_2020/12/22
Any idea?