blacktop / docker-kibana-alpine

Alpine Linux based Kibana Docker Image
MIT License
73 stars 32 forks source link

Not working with X-pack #9

Closed Anderssorby closed 4 years ago

Anderssorby commented 4 years ago

It seems there is a problem with running this image with the corresponding elasticsearch image with x-pack activated.

Using this docker-compose.yml does not work

elasticsearch:
    image: blacktop/elasticsearch:7.5
    container_name: elasticsearch
    hostname: elasticsearch
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - "9200:9200"
      - "9300:9300"
    networks:
      - flex
  kibana:
    image: blacktop/kibana:7.5
    container_name: kibana
    hostname: kibana
    ports:
      - "5601:5601"
    networks:
      - flex
    depends_on:
      - elasticsearch

Gives this error

:["warning","plugins","licensing"],"pid":6,"message":"License information could not be obtained from Elasticsearch for the [data] cluster. [invalid_index_name_exception] Invalid index name [_xpack], must not start with '_'., with { index_uuid=\"_na_\" & index=\"_xpack\" } :: {\"path\":\"/_xpack\",\"statusCode\":400,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"invalid_index_name_exception\\\",\\\"reason\\\":\\\"Invalid index name [_xpack], must not start with '_'.\\\",\\\"index_uuid\\\":\\\"_na_\\\",\\\"index\\\":\\\"_xpack\\\"}],\\\"type\\\":\\\"invalid_index_name_exception\\\",\\\"reason\\\":\\\"Invalid index name [_xpack], must not start with '_'.\\\",\\\"index_uuid\\\":\\\"_na_\\\",\\\"index\\\":\\\"_xpack\\\"},\\\"status\\\":400}\"}"}

and

FATAL  [mapper_parsing_exception] No handler for type [flattened] declared on field [state] :: {"path":"/.kibana_1","query":{},"b
Anderssorby commented 4 years ago

However this works fine:

elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1
    container_name: elasticsearch
    hostname: elasticsearch
    environment:
      - discovery.type=single-node
    env_file:
      - ./.env
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - "9200:9200"
      - "9300:9300"
    networks:
      - flex
  kibana:
    image: docker.elastic.co/kibana/kibana:7.5.1
    container_name: kibana
    hostname: kibana
    ports:
      - "5601:5601"
    networks:
      - flex
    depends_on:
      - elasticsearch
blacktop commented 4 years ago

How is your networks defined

blacktop commented 4 years ago
version: "3.7"
services:
  elasticsearch:
    image: blacktop/elasticsearch:7.5.1
    container_name: elasticsearch
    hostname: elasticsearch
    environment:
      - discovery.type=single-node
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - "9200:9200"
      - "9300:9300"
    networks:
    - default

  kibana:
    image: blacktop/kibana:7.5.1
    container_name: kibana
    hostname: kibana
    ports:
      - "5601:5601"
    networks:
    - default

networks:
  default:
blacktop commented 4 years ago

this works for me just fine. I can't recreate your issue

Anderssorby commented 4 years ago

I got it working with your config. I might have forgotten to rebuild the images or something.