By default elastic beanstalk logs are prefixed by the date and the ip. This is may not be desired, either because the date is also in the logs or because the timestamp is included in cloudwatch logs metadata.
We can remove it by adding two hooks (both with the same content):
- .platform/hooks/predeploy/10_logs.sh
- .platform/confighooks/predeploy/10_logs.sh
Note: You must ensure these are executable before packaing (chmod +x
).