Sounds straighforward: Given a job ID I want to download its full log using a Linux terminal:
JOB_ID="my_job_id"
aws batch describe-jobs --jobs "$JOB_ID"
LOG_STREAM_NAME=$(echo "$JOB_DETAILS" | grep CONTAINER | awk '{print $3}')
aws logs get-log-events --log-group-name "/aws/batch/job" --log-stream-name $LOG_STREAM_NAME --limit 100
But I keep getting this metadat:
b/38781942569766377771292687964204445635244027793096278015/s f/38785617564483228684061841121250906068042995828913078272/s
I have
- checked the original log (it exists),
- checked the log stream name (retrieved from the AWS CLI command and copied from the console),
- updated the AWS CLI to its latest version (2.24),
but still ends with the metadata.