• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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