最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Retrieving logs from AWS batch job using AWS CLI - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论