Задать вопрос

Не могу соединить kibana к elastic?

version: "3.7"
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
    ports: 
      - "9200:9200"
    volumes:
      - /home/user/docker/elasticsearch/elastic:/usr/share/elasticsearch/data
    environment:
      - discovery.seed_hosts=elasticsearch
      - cluster.initial_master_nodes=node-1
    networks:
      - elastic-net
  kibana:
    image: docker.elastic.co/kibana/kibana:7.10.0
    depends_on:
      - elasticsearch
    ports:
      - "5601:5601"
    networks:
      - elastic-net
    environment:
      ELASTICSEARCH_HOSTS: 'http://elasticsearch:9200'
  nginx:
    image: nginx:stable
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /home/user/docker/elasticsearch/nginx:/etc/nginx
    networks:
      - elastic-net
  certbot:
    image: certbot/certbot
    depends_on:
      - nginx
    networks:
      - elastic-net
networks:
  elastic-net: 
    driver: bridge

При таком конфиге kibana не видит elasticsearch(хотя он запущен нормально.Пытался пинговать из контейнера кибана эласти ,пинг идёт. Выводит такие ошибки в логах:
{"type":"log","@timestamp":"2023-11-16T08:39:25Z","tags":["warning","savedobjects-service"],"pid":7,"message":"Unable to connect to Elasticsearch. Error: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:39:57Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:39:57Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:40:30Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:40:30Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:41:02Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:41:02Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:41:35Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
{"type":"log","@timestamp":"2023-11-16T08:41:35Z","tags":["error","elasticsearch","data"],"pid":7,"message":"[TimeoutError]: Request timed out"}
  • Вопрос задан
  • 150 просмотров
Подписаться 3 Средний 1 комментарий
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы