How to see actual requests by ELB?

0

My load balancer for a new "Linux 2" environment is in “Severe” health because the health checks are experiencing: “Target.ResponseCodeMismatch”.

Is there any way I can see the exact requests being made by the ELB to my servers? I want to know the hostname, the ports, etc., so I can exactly pinpoint what’s going on. I turned on logging in the Elastic Beanstalk configuration for the load balancer, but I downloaded those files from s3 and I’m not seeing the health check requests.

This page has some helpful ideas https://aws.amazon.com/premiumsupport/knowledge-center/elb-fix-failing-health-checks-alb/ but it’s all hearsay without being able to see what the ELB is actually doing.

질문됨 3년 전517회 조회
1개 답변
0

In the elastic beanstalk console, I was able to go to Logs > Request last 100 lines and see the ELB pings under /var/log/eb-docker/containers/eb-current-app/eb-stdouterr.log:

django_1  | ERROR 2021-09-13 13:55:37,146 exception 27 140410675223368 Invalid HTTP_HOST header: '172.31.XX.XX'. You may need to add '172.31.XX.XX' to ALLOWED_HOSTS.  

Also, since I’m using Docker, I found some helpful notes on this page for mounting log directories within containers to the right place via "volumes" in the docker-compose file: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/docker-multicontainer-migration.html

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠