• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Question Docker ELK elasticsearch and Kibana

Julian-b90

New Pleskian
I have two Docker Containers start from plesk docker extension.
I have problems connect from kibana in to the elasticsearch container.

Have anyone a idea?

System:
  • OS: ‪Ubuntu 18.04.4 LTS‬
  • Plesk Obsidian 18.0.25 Update Nr. 2
  • Plesk Docker 1.4.6-168
  • Elasticsearch 7.6.1
  • Kibana 7.6.1
 
Kibana communicates with Elastic through port 9200. You have to to create this connection between Docker Containers through this port.
 
Yes i have add this Settings:

elasticsearch:
  • autorestart = true
  • auto port mappig = false
  • manually port mapping
    • 9200 => 9200
    • 9300 => 9300
  • Environment variables
    • PATH => /usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • ELASTIC_CONTAINER => true
  • Volume-Mapping:
    • /usr/share/elasticsearch/config/elasticsearch.yml => /var/www/vhosts/xxxx.de/es/elasticsearch.yml
    • /usr/share/elasticsearch/logs => /var/www/vhosts/xxxx.de/logs/es
  • elasticsearch.yml
    • YAML:
      ---
      ## Default Elasticsearch configuration from Elasticsearch base image.
      ## https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml
      #
      cluster.name: "elasticsearch"
      network.host: 0.0.0.0
      
      
      discovery.seed_hosts:
         - localhost:9300
         - localhost:9200
         - elasticsearch:9200
         - elasticsearch:9300
      cluster.initial_master_nodes:
         - master-node-a
      
      ## X-Pack settings
      ## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.htruetml
      #
      # xpack.security.enabled: true
      # xpack.monitoring.collection.enabled: true
      
      node.store.allow_mmap: false

Kibana
  • autorestart = true
  • auto port mapping => false
  • manuell port
    • 5601 => 5601
  • Volume-Mapping:
    • /usr/share/kibana/config/kibana.yml => /var/www/vhosts/xxxx.de/es/kibana.yml
  • Environment variables
    • PATH => /usr/share/kibana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • ELASTIC_CONTAINER => true
  • kibana.yml
    • YAML:
      ---
      ## Default Kibana configuration from Kibana base image.
      ## https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/templates/kibana_yml.template.js
      #
      server.name: kibana
      server.host: "0"
      elasticsearch.hosts: [ "http://elasticsearch:9200/" ]
      xpack.monitoring.ui.container.elasticsearch.enabled: true
      
      ## X-Pack security credentials
      #
      elasticsearch.username: elastic
      elasticsearch.password: changeme


In addition i have create a docker network with: docker network create elk

and add this two containers to this elk network.
 
Back
Top