Search code examples
amazon-web-servicesamazon-elbhealth-monitoring

How to get URL of 302 redirect on Elastic Load Balancer health check?


An app is deployed on Elastic Beanstalk with an Application Load Balancer.

The health checks fail and in the dashboard under ECS2 > Load Balancing > Target Groups I see the response code mismatch is due to a 302 temporary redirect.

enter image description here

But where can I find the actual log that also shows to which URL the redirect is to further analyze the issue?


Solution

  • You would need to enable logging on your ELB, and configure it to write the logs to an S3 bucket. Then you could look in that S3 bucket to see the logs.