• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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