Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 402 Bytes

eb_custom_logs_to_cloudwatch.md

File metadata and controls

20 lines (16 loc) · 402 Bytes

Add custom logs to CloudWatch

Add a .config file to .ebextensions folder with the following content, replacing the placeholder with a regex of the logs files to match against:

files:
  "/opt/elasticbeanstalk/tasks/bundlelogs.d/applogs.conf" :
    mode: "000755"
    owner: root
    group: root
    content: |
      {placeholder}

Placeholder example:

/var/app/current/logs/*.log