Closed ykitamura-mdsol closed 5 years ago
All of AWS Batch logs are sent to one log group, /aws/batch/job, and the log stream name format is jobDefinitionName/default/ecs_task_id: https://docs.aws.amazon.com/batch/latest/userguide/job_states.html
/aws/batch/job
jobDefinitionName/default/ecs_task_id
In order to stream logs of specific AWS Batch jobs to SumoLogic, this PR is adding log stream name prefix filtering for CloudWatch logs
@himanshu219, could you please review this PR?
Good idea 💡 Added the variable in e64128c
Thanks
Background
All of AWS Batch logs are sent to one log group,
/aws/batch/job
, and the log stream name format isjobDefinitionName/default/ecs_task_id
: https://docs.aws.amazon.com/batch/latest/userguide/job_states.htmlChanges
In order to stream logs of specific AWS Batch jobs to SumoLogic, this PR is adding log stream name prefix filtering for CloudWatch logs