fluentd - host is unreachable

2020. 10. 6. 12:30·DevOps/monitoring
2020-10-05 16:19:32 +0000 [warn]: #0 failed to flush the buffer. retry_time=15 next_retry_seconds=2020-10-05 21:09:56 +0000 chunk="5b0e6e3d58b7cec7f1d92eaa332995c8" error_class=Fluent::Plugin::ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=>\"호스트명\", :port=>포트번호, :scheme=>\"http\"}): Host is unreachable - connect(2) for IP주소 (Errno::EHOSTUNREACH)"

로그가 수집되지 않길래 fluentd의 로그를 확인해보니 이런 처음 보는 에러가 발생헀다.
ES나 fluentd의 설정은 변경된게 없다. (추석연휴였는데 설정바뀔일이 없지!)

원인

찾아보니, fluentd-ruby의 버그.
fluentd -> ES 연결 시, host 설정이 proxy나 Load Balancing을 하게 되면 발생하는 에러라고 한다.
fluentd-ruby host를 연결해주는 default class 말고 다른 class를 사용하면 해결되는 에러.

해결방법

  1. default ruby class말고 다른 class 사용 (ElasticsearchSimpleSniffer)
  2. IP로 직접 연결

제일 빠르게 수정할 수 있는 방법은 IP로 직접연결을 선택했다. 일단은 모니터링 해보고 다른 문제가 발생하거나 또 재현된다면 여기에 추가할 예정.

저작자표시 비영리 변경금지 (새창열림)

'DevOps > monitoring' 카테고리의 다른 글

[대충로그] grafana-loki query  (0) 2021.06.03
'DevOps/monitoring' 카테고리의 다른 글
  • [대충로그] grafana-loki query
bandal-gom
bandal-gom
Devops & Backend Developer | tech blog
  • bandal-gom
    yayz's devlog
    bandal-gom
  • 전체
    오늘
    어제
    • 분류 전체보기 (68)
      • DevOps (22)
        • devops (4)
        • cicd (2)
        • docker (2)
        • monitoring (2)
        • nginx (4)
        • cache (1)
        • aws (1)
        • etc (6)
      • BE (21)
        • BE (3)
        • design pattern (1)
        • data structure (0)
        • spring (1)
        • algorithm (12)
      • devlog (24)
        • TIL (17)
        • programming language (2)
        • conference (2)
        • etc (3)
      • IT Review (1)
  • 블로그 메뉴

    • about.
    • 개발👩‍💻
    • etc.
  • 링크

    • Github
  • 공지사항

  • 인기 글

  • 태그

    모각코
    알고리즘
    til
    문제풀이
    jenkins
    algorithm
    오블완
    hash
    항해99
    개발자취업
    Kotlin
    Python
    java
    99클럽
    릿코드
    티스토리챌린지
    키캡
    time complexity
    코딩테스트준비
    leetcode 347
    LeetCode
    젠킨스
    homelab
    알고리즘문제풀이
    프로그래머스
    노트북하기좋은카페
    Programmers
    array
    NGINX
    키보드케이블
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.1
bandal-gom
fluentd - host is unreachable
상단으로

티스토리툴바