Cannot connect to elasticsearch but i have connected to kibana

I cannot connect to elasticsearch , when I try to connect it through client winlogbeat , connection refused by server.

Welcome to our community! :smiley:

Please share the errors you are seeing. As well as what version of things you are using.

``` 
   Kibana Version 7.6.0
    elastic search version 7.6.0
    winlogbeat 7.9.0

winlogbeat log error : 
     Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://10.1.106.5:9200: Get "http://x.x.x.x:9200": dial tcp x.x.x.x:9200
     connectex: No connection could be made because the target machine actively refused it.]

    this is kibana.yml:
    server.port: 5601
    server.host: "10.1.106.5"
    server.ssl.enabled: false
    elasticsearch.url: http://x.x.x.x:9200

    server.ssl.key: /etc/kibana/kibana.key
    server.ssl.certificate: /etc/kibana/kibana.cert
    telemetry.enabled: false

    this is elastic search.yml:
        cluster.name: wazuh-cluster
    node.name: ${HOSTNAME}
    path.data: /var/lib/elasticsearch
    path.logs: /var/log/elasticsearch
    bootstrap.memory_lock: true
    network.host: 127.0.0.1
    http.port: 9200
    discovery.zen.minimum_master_nodes: 1

    this is  on winlogbeat client .yml :
        ###################### Winlogbeat Configuration Example ########################

    # This file is an example configuration file highlighting only the most common
    # options. The winlogbeat.reference.yml file from the same directory contains
    # all the supported options with more comments. You can use it as a reference.
    #
    # You can find the full configuration reference here:
    # https://www.elastic.co/guide/en/beats/winlogbeat/index.html

    # ======================== Winlogbeat specific options =========================

    # event_logs specifies a list of event logs to monitor as well as any
    # accompanying options. The YAML data type of event_logs is a list of
    # dictionaries.
    #
    # The supported keys are name (required), tags, fields, fields_under_root,
    # forwarded, ignore_older, level, event_id, provider, and include_xml. Please
    # visit the documentation for the complete details of each option.
    # https://go.es.io/WinlogbeatConfig

    winlogbeat.event_logs:
      - name: Application
        ignore_older: 72h

      - name: System

      - name: Security
        processors:
          - script:
              lang: javascript
              id: security
              file: ${path.home}/module/security/config/winlogbeat-security.js

      - name: Microsoft-Windows-Sysmon/Operational
        processors:
          - script:
              lang: javascript
              id: sysmon
              file: ${path.home}/module/sysmon/config/winlogbeat-sysmon.js

      - name: Windows PowerShell
        event_id: 400, 403, 600, 800
        processors:
          - script:
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js

      - name: Microsoft-Windows-PowerShell/Operational
        event_id: 4103, 4104, 4105, 4106
        processors:
          - script:
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js

      - name: ForwardedEvents
        tags: [forwarded]
        processors:
          - script:
              when.equals.winlog.channel: Security
              lang: javascript
              id: security
              file: ${path.home}/module/security/config/winlogbeat-security.js
          - script:
              when.equals.winlog.channel: Microsoft-Windows-Sysmon/Operational
              lang: javascript
              id: sysmon
              file: ${path.home}/module/sysmon/config/winlogbeat-sysmon.js
          - script:
              when.equals.winlog.channel: Windows PowerShell
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js
          - script:
              when.equals.winlog.channel: Microsoft-Windows-PowerShell/Operational
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js

    # ====================== Elasticsearch template settings =======================

    setup.template.settings:
      index.number_of_shards: 1
      #index.codec: best_compression
      #_source.enabled: false


    # ================================== General ===================================

    # The name of the shipper that publishes the network data. It can be used to group
    # all the transactions sent by a single shipper in the web interface.
    #name:

    # The tags of the shipper are included in their own field with each
    # transaction published.
    #tags: ["service-X", "web-tier"]

    # Optional fields that you can specify to add additional information to the
    # output.
    #fields:
    #  env: staging

    # ================================= Dashboards =================================
    # These settings control loading the sample dashboards to the Kibana index. Loading
    # the dashboards is disabled by default and can be enabled either by setting the
    # options here or by using the `setup` command.
    setup.dashboards.enabled: true

    # The URL from where to download the dashboards archive. By default this URL
    # has a value which is computed based on the Beat name and version. For released
    # versions, this URL points to the dashboard archive on the artifacts.elastic.co
    # website.
    #setup.dashboards.url:

    # =================================== Kibana ===================================

    # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
    # This requires a Kibana endpoint configuration.
    setup.kibana:

      # Kibana Host
      # Scheme and port can be left out and will be set to the default (http and 5601)
      # In case you specify and additional path, the scheme is required: http://localhost:5601/path
      # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
      host: "http://x.x.x.x:5601"
      

      # Kibana Space ID
      # ID of the Kibana Space into which the dashboards should be loaded. By default,
      # the Default Space will be used.
      #space.id:

    # =============================== Elastic Cloud ================================

    # These settings simplify using Winlogbeat with the Elastic Cloud (https://cloud.elastic.co/).

    # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
    # `setup.kibana.host` options.
    # You can find the `cloud.id` in the Elastic Cloud web UI.
    #cloud.id:

    # The cloud.auth setting overwrites the `output.elasticsearch.username` and
    # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
    #cloud.auth:

    # ================================== Outputs ===================================

    # Configure what output to use when sending the data collected by the beat.

    # ---------------------------- Elasticsearch Output ----------------------------
    output.elasticsearch:
      # Array of hosts to connect to.
      hosts: ["x.x.x.x:9200"]

      # Protocol - either `http` (default) or `https`.
      # protocol: "https"

      # Authentication credentials - either API key or username/password.
      #api_key: "id:api_key"
      #username: "elastic"
      #password: "changeme"

    # ------------------------------ Logstash Output -------------------------------
    #output.logstash:
      # The Logstash hosts
      #hosts: ["localhost:5044"]

      # Optional SSL. By default is off.
      # List of root certificates for HTTPS server verifications
      #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

      # Certificate for SSL client authentication
      #ssl.certificate: "/etc/pki/client/cert.pem"

      # Client Certificate Key
      #ssl.key: "/etc/pki/client/cert.key"

    # ================================= Processors =================================
    processors:
      - add_host_metadata:
          when.not.contains.tags: forwarded
      - add_cloud_metadata: ~

    # ================================== Logging ===================================

    # Sets log level. The default log level is info.
    # Available log levels are: error, warning, info, debug
    #logging.level: debug

    # At debug level, you can selectively enable logging only for some components.
    # To enable all selectors use ["*"]. Examples of other selectors are "beat",
    # "publish", "service".
    #logging.selectors: ["*"]

    # ============================= X-Pack Monitoring ==============================
    # Winlogbeat can export internal metrics to a central Elasticsearch monitoring
    # cluster.  This requires xpack monitoring to be enabled in Elasticsearch.  The
    # reporting is disabled by default.

    # Set to true to enable the monitoring reporter.
    #monitoring.enabled: false

    # Sets the UUID of the Elasticsearch cluster under which monitoring data for this
    # Winlogbeat instance will appear in the Stack Monitoring UI. If output.elasticsearch
    # is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch.
    #monitoring.cluster_uuid:

    # Uncomment to send the metrics to Elasticsearch. Most settings from the
    # Elasticsearch output are accepted here as well.
    # Note that the settings should point to your Elasticsearch *monitoring* cluster.
    # Any setting that is not set is automatically inherited from the Elasticsearch
    # output configuration, so if you have the Elasticsearch output configured such
    # that it is pointing to your Elasticsearch monitoring cluster, you can simply
    # uncomment the following line.
    #monitoring.elasticsearch:

    # ============================== Instrumentation ===============================

    # Instrumentation support for the winlogbeat.
    #instrumentation:
        # Set to true to enable instrumentation of winlogbeat.
        #enabled: false

        # Environment in which winlogbeat is running on (eg: staging, production, etc.)
        #environment: ""

        # APM Server hosts to report instrumentation results to.
        #hosts:
        #  - http://localhost:8200

        # API Key for the APM Server(s).
        # If api_key is set then secret_token will be ignored.
        #api_key:

        # Secret token for the APM Server(s).
        #secret_token:


    # ================================= Migration ==================================

    # This allows to enable 6.7 migration aliases
    #migration.6_to_7.enabled: true
```

Do you mind editing that post please, your formatting makes it a little hard to read.

What does your Elasticsearch config look like?

Kibana Version 7.6.0
    elastic search version 7.6.0
    winlogbeat 7.9.0

winlogbeat log error : 
     Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at http://x.x.x.x:9200: Get "http://x.x.x.x:9200": dial tcp x.x.x.x:9200
     connectex: No connection could be made because the target machine actively refused it.]

    this is kibana.yml:
    server.port: 5601
    server.host: "10.1.106.5"
    server.ssl.enabled: false
    elasticsearch.url: http://x.x.x.x:9200

    server.ssl.key: /etc/kibana/kibana.key
    server.ssl.certificate: /etc/kibana/kibana.cert
    telemetry.enabled: false

    this is elastic search.yml:
        cluster.name: wazuh-cluster
    node.name: ${HOSTNAME}
    path.data: /var/lib/elasticsearch
    path.logs: /var/log/elasticsearch
    bootstrap.memory_lock: true
    network.host: 127.0.0.1
    http.port: 9200
    discovery.zen.minimum_master_nodes: 1

    this is  on winlogbeat client .yml :
        ###################### Winlogbeat Configuration Example ########################

    # This file is an example configuration file highlighting only the most common
    # options. The winlogbeat.reference.yml file from the same directory contains
    # all the supported options with more comments. You can use it as a reference.
    #
    # You can find the full configuration reference here:
    # https://www.elastic.co/guide/en/beats/winlogbeat/index.html

    # ======================== Winlogbeat specific options =========================

    # event_logs specifies a list of event logs to monitor as well as any
    # accompanying options. The YAML data type of event_logs is a list of
    # dictionaries.
    #
    # The supported keys are name (required), tags, fields, fields_under_root,
    # forwarded, ignore_older, level, event_id, provider, and include_xml. Please
    # visit the documentation for the complete details of each option.
    # https://go.es.io/WinlogbeatConfig

    winlogbeat.event_logs:
      - name: Application
        ignore_older: 72h

      - name: System

      - name: Security
        processors:
          - script:
              lang: javascript
              id: security
              file: ${path.home}/module/security/config/winlogbeat-security.js

      - name: Microsoft-Windows-Sysmon/Operational
        processors:
          - script:
              lang: javascript
              id: sysmon
              file: ${path.home}/module/sysmon/config/winlogbeat-sysmon.js

      - name: Windows PowerShell
        event_id: 400, 403, 600, 800
        processors:
          - script:
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js

      - name: Microsoft-Windows-PowerShell/Operational
        event_id: 4103, 4104, 4105, 4106
        processors:
          - script:
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js

      - name: ForwardedEvents
        tags: [forwarded]
        processors:
          - script:
              when.equals.winlog.channel: Security
              lang: javascript
              id: security
              file: ${path.home}/module/security/config/winlogbeat-security.js
          - script:
              when.equals.winlog.channel: Microsoft-Windows-Sysmon/Operational
              lang: javascript
              id: sysmon
              file: ${path.home}/module/sysmon/config/winlogbeat-sysmon.js
          - script:
              when.equals.winlog.channel: Windows PowerShell
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js
          - script:
              when.equals.winlog.channel: Microsoft-Windows-PowerShell/Operational
              lang: javascript
              id: powershell
              file: ${path.home}/module/powershell/config/winlogbeat-powershell.js

    # ====================== Elasticsearch template settings =======================

    setup.template.settings:
      index.number_of_shards: 1
      #index.codec: best_compression
      #_source.enabled: false


    # ================================== General ===================================

    # The name of the shipper that publishes the network data. It can be used to group
    # all the transactions sent by a single shipper in the web interface.
    #name:

    # The tags of the shipper are included in their own field with each
    # transaction published.
    #tags: ["service-X", "web-tier"]

    # Optional fields that you can specify to add additional information to the
    # output.
    #fields:
    #  env: staging

    # ================================= Dashboards =================================
    # These settings control loading the sample dashboards to the Kibana index. Loading
    # the dashboards is disabled by default and can be enabled either by setting the
    # options here or by using the `setup` command.
    setup.dashboards.enabled: true

    # The URL from where to download the dashboards archive. By default this URL
    # has a value which is computed based on the Beat name and version. For released
    # versions, this URL points to the dashboard archive on the artifacts.elastic.co
    # website.
    #setup.dashboards.url:

    # =================================== Kibana ===================================

    # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
    # This requires a Kibana endpoint configuration.
    setup.kibana:

      # Kibana Host
      # Scheme and port can be left out and will be set to the default (http and 5601)
      # In case you specify and additional path, the scheme is required: http://localhost:5601/path
      # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
      host: "http://x.x.x.x:5601"
      

      # Kibana Space ID
      # ID of the Kibana Space into which the dashboards should be loaded. By default,
      # the Default Space will be used.
      #space.id:

    # =============================== Elastic Cloud ================================

    # These settings simplify using Winlogbeat with the Elastic Cloud (https://cloud.elastic.co/).

    # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
    # `setup.kibana.host` options.
    # You can find the `cloud.id` in the Elastic Cloud web UI.
    #cloud.id:

    # The cloud.auth setting overwrites the `output.elasticsearch.username` and
    # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
    #cloud.auth:

    # ================================== Outputs ===================================

    # Configure what output to use when sending the data collected by the beat.

    # ---------------------------- Elasticsearch Output ----------------------------
    output.elasticsearch:
      # Array of hosts to connect to.
      hosts: ["x.x.x.x:9200"]

      # Protocol - either `http` (default) or `https`.
      # protocol: "https"

      # Authentication credentials - either API key or username/password.
      #api_key: "id:api_key"
      #username: "elastic"
      #password: "changeme"

    # ------------------------------ Logstash Output -------------------------------
    #output.logstash:
      # The Logstash hosts
      #hosts: ["localhost:5044"]

      # Optional SSL. By default is off.
      # List of root certificates for HTTPS server verifications
      #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

      # Certificate for SSL client authentication
      #ssl.certificate: "/etc/pki/client/cert.pem"

      # Client Certificate Key
      #ssl.key: "/etc/pki/client/cert.key"

    # ================================= Processors =================================
    processors:
      - add_host_metadata:
          when.not.contains.tags: forwarded
      - add_cloud_metadata: ~

    # ================================== Logging ===================================

    # Sets log level. The default log level is info.
    # Available log levels are: error, warning, info, debug
    #logging.level: debug

    # At debug level, you can selectively enable logging only for some components.
    # To enable all selectors use ["*"]. Examples of other selectors are "beat",
    # "publish", "service".
    #logging.selectors: ["*"]

    # ============================= X-Pack Monitoring ==============================
    # Winlogbeat can export internal metrics to a central Elasticsearch monitoring
    # cluster.  This requires xpack monitoring to be enabled in Elasticsearch.  The
    # reporting is disabled by default.

    # Set to true to enable the monitoring reporter.
    #monitoring.enabled: false

    # Sets the UUID of the Elasticsearch cluster under which monitoring data for this
    # Winlogbeat instance will appear in the Stack Monitoring UI. If output.elasticsearch
    # is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch.
    #monitoring.cluster_uuid:

    # Uncomment to send the metrics to Elasticsearch. Most settings from the
    # Elasticsearch output are accepted here as well.
    # Note that the settings should point to your Elasticsearch *monitoring* cluster.
    # Any setting that is not set is automatically inherited from the Elasticsearch
    # output configuration, so if you have the Elasticsearch output configured such
    # that it is pointing to your Elasticsearch monitoring cluster, you can simply
    # uncomment the following line.
    #monitoring.elasticsearch:

    # ============================== Instrumentation ===============================

    # Instrumentation support for the winlogbeat.
    #instrumentation:
        # Set to true to enable instrumentation of winlogbeat.
        #enabled: false

        # Environment in which winlogbeat is running on (eg: staging, production, etc.)
        #environment: ""

        # APM Server hosts to report instrumentation results to.
        #hosts:
        #  - http://localhost:8200

        # API Key for the APM Server(s).
        # If api_key is set then secret_token will be ignored.
        #api_key:

        # Secret token for the APM Server(s).
        #secret_token:


    # ================================= Migration ==================================

    # This allows to enable 6.7 migration aliases
    #migration.6_to_7.enabled: true

Your Elasticsearch network.host is 127.0,0.1 which is localhost so connection can only be made within the host. Change this to 0.0.0.0.

when I changed network.host to 0.0.0.0 ,cannot start elsticsearch service.

sudo systemctl start elasticsearch.service
Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

Look at the Elasticsearch logs. It is likely you are hitting some bootstrap checks.

this is elasticsearch log : 
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2020-09-03T09:21:00,795][INFO ][o.e.n.Node               ] [manager] stopping ...
[2020-09-03T09:21:00,826][INFO ][o.e.n.Node               ] [manager] stopped
[2020-09-03T09:21:00,827][INFO ][o.e.n.Node               ] [manager] closing ...
[2020-09-03T09:21:00,850][INFO ][o.e.n.Node               ] [manager] closed
[2020-09-03T09:22:28,490][INFO ][o.e.e.NodeEnvironment    ] [manager] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [34.9gb], net total_space [39.9gb], types [rootfs]
[2020-09-03T09:22:28,494][INFO ][o.e.e.NodeEnvironment    ] [manager] heap size [1.9gb], compressed ordinary object pointers [true]
[2020-09-03T09:22:28,691][INFO ][o.e.n.Node               ] [manager] node name [manager], node ID [z6a2ODQhQL6HukNHRRs0eQ], cluster name [wazuh-cluster]
[2020-09-03T09:22:28,692][INFO ][o.e.n.Node               ] [manager] version[7.6.0], pid[7321], build[oss/rpm/7f634e9f44834fbc12724506cc1da681b0c3b1e3/2020-02-06T00:09:00.449973Z], OS[Linux/3.10.0-957.5.1.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
[2020-09-03T09:22:28,692][INFO ][o.e.n.Node               ] [manager] JVM home [/usr/share/elasticsearch/jdk]
[2020-09-03T09:22:28,693][INFO ][o.e.n.Node               ] [manager] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=COMPAT, -Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-13323040776567571090, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:MaxDirectMemorySize=1073741824, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=oss, -Des.distribution.type=rpm, -Des.bundled_jdk=true]
[2020-09-03T09:22:29,511][INFO ][o.e.p.PluginsService     ] [manager] loaded module [aggs-matrix-stats]
[2020-09-03T09:22:29,511][INFO ][o.e.p.PluginsService     ] [manager] loaded module [analysis-common]
[2020-09-03T09:22:29,512][INFO ][o.e.p.PluginsService     ] [manager] loaded module [ingest-common]
[2020-09-03T09:22:29,512][INFO ][o.e.p.PluginsService     ] [manager] loaded module [ingest-geoip]
[2020-09-03T09:22:29,512][INFO ][o.e.p.PluginsService     ] [manager] loaded module [ingest-user-agent]
[2020-09-03T09:22:29,512][INFO ][o.e.p.PluginsService     ] [manager] loaded module [lang-expression]
[2020-09-03T09:22:29,513][INFO ][o.e.p.PluginsService     ] [manager] loaded module [lang-mustache]
[2020-09-03T09:22:29,513][INFO ][o.e.p.PluginsService     ] [manager] loaded module [lang-painless]
[2020-09-03T09:22:29,513][INFO ][o.e.p.PluginsService     ] [manager] loaded module [mapper-extras]
[2020-09-03T09:22:29,514][INFO ][o.e.p.PluginsService     ] [manager] loaded module [parent-join]
[2020-09-03T09:22:29,514][INFO ][o.e.p.PluginsService     ] [manager] loaded module [percolator]
[2020-09-03T09:22:29,514][INFO ][o.e.p.PluginsService     ] [manager] loaded module [rank-eval]
[2020-09-03T09:22:29,515][INFO ][o.e.p.PluginsService     ] [manager] loaded module [reindex]
[2020-09-03T09:22:29,515][INFO ][o.e.p.PluginsService     ] [manager] loaded module [repository-url]
[2020-09-03T09:22:29,515][INFO ][o.e.p.PluginsService     ] [manager] loaded module [systemd]
[2020-09-03T09:22:29,515][INFO ][o.e.p.PluginsService     ] [manager] loaded module [transport-netty4]
[2020-09-03T09:22:29,516][INFO ][o.e.p.PluginsService     ] [manager] no plugins loaded
[2020-09-03T09:22:32,935][INFO ][o.e.d.DiscoveryModule    ] [manager] using discovery type [zen] and seed hosts providers [settings]
[2020-09-03T09:22:33,426][INFO ][o.e.n.Node               ] [manager] initialized
[2020-09-03T09:22:33,426][INFO ][o.e.n.Node               ] [manager] starting ...
[2020-09-03T09:22:33,569][INFO ][o.e.t.TransportService   ] [manager] publish_address {10.1.106.5:9200}, bound_addresses {[::]:9200}
[2020-09-03T09:22:33,978][INFO ][o.e.b.BootstrapChecks    ] [manager] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2020-09-03T09:22:33,980][ERROR][o.e.b.Bootstrap          ] [manager] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2020-09-03T09:22:33,992][INFO ][o.e.n.Node               ] [manager] stopping ...
[2020-09-03T09:22:34,027][INFO ][o.e.n.Node               ] [manager] stopped
[2020-09-03T09:22:34,027][INFO ][o.e.n.Node               ] [manager] closing ...
[2020-09-03T09:22:34,043][INFO ][o.e.n.Node               ] [manager] closed
[2020-09-03T09:40:58,219][INFO ][o.e.e.NodeEnvironment    ] [manager] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [34.9gb], net total_space [39.9gb], types [rootfs]
[2020-09-03T09:40:58,224][INFO ][o.e.e.NodeEnvironment    ] [manager] heap size [1.9gb], compressed ordinary object pointers [true]
[2020-09-03T09:40:58,416][INFO ][o.e.n.Node               ] [manager] node name [manager], node ID [z6a2ODQhQL6HukNHRRs0eQ], cluster name [wazuh-cluster]
[2020-09-03T09:40:58,416][INFO ][o.e.n.Node               ] [manager] version[7.6.0], pid[7453], build[oss/rpm/7f634e9f44834fbc12724506cc1da681b0c3b1e3/2020-02-06T00:09:00.449973Z], OS[Linux/3.10.0-957.5.1.el7.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13.0.2/13.0.2+8]
[2020-09-03T09:40:58,417][INFO ][o.e.n.Node               ] [manager] JVM home [/usr/share/elasticsearch/jdk]
[2020-09-03T09:40:58,417][INFO ][o.e.n.Node               ] [manager] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=COMPAT, -Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-4314208955187054394, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:MaxDirectMemorySize=1073741824, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=oss, -Des.distribution.type=rpm, -Des.bundled_jdk=true]
[2020-09-03T09:40:59,133][INFO ][o.e.p.PluginsService     ] [manager] loaded module [aggs-matrix-stats]
[2020-09-03T09:40:59,134][INFO ][o.e.p.PluginsService     ] [manager] loaded module [analysis-common]
[2020-09-03T09:40:59,134][INFO ][o.e.p.PluginsService     ] [manager] loaded module [ingest-common]
[2020-09-03T09:40:59,134][INFO ][o.e.p.PluginsService     ] [manager] loaded module [ingest-geoip]
[2020-09-03T09:40:59,135][INFO ][o.e.p.PluginsService     ] [manager] loaded module [ingest-user-agent]
[2020-09-03T09:40:59,135][INFO ][o.e.p.PluginsService     ] [manager] loaded module [lang-expression]
[2020-09-03T09:40:59,135][INFO ][o.e.p.PluginsService     ] [manager] loaded module [lang-mustache]
[2020-09-03T09:40:59,136][INFO ][o.e.p.PluginsService     ] [manager] loaded module [lang-painless]
[2020-09-03T09:40:59,136][INFO ][o.e.p.PluginsService     ] [manager] loaded module [mapper-extras]
[2020-09-03T09:40:59,136][INFO ][o.e.p.PluginsService     ] [manager] loaded module [parent-join]
[2020-09-03T09:40:59,137][INFO ][o.e.p.PluginsService     ] [manager] loaded module [percolator]
[2020-09-03T09:40:59,137][INFO ][o.e.p.PluginsService     ] [manager] loaded module [rank-eval]
[2020-09-03T09:40:59,137][INFO ][o.e.p.PluginsService     ] [manager] loaded module [reindex]
[2020-09-03T09:40:59,137][INFO ][o.e.p.PluginsService     ] [manager] loaded module [repository-url]
[2020-09-03T09:40:59,138][INFO ][o.e.p.PluginsService     ] [manager] loaded module [systemd]
[2020-09-03T09:40:59,138][INFO ][o.e.p.PluginsService     ] [manager] loaded module [transport-netty4]
[2020-09-03T09:40:59,139][INFO ][o.e.p.PluginsService     ] [manager] no plugins loaded
[2020-09-03T09:41:02,279][INFO ][o.e.d.DiscoveryModule    ] [manager] using discovery type [zen] and seed hosts providers [settings]
[2020-09-03T09:41:02,776][INFO ][o.e.n.Node               ] [manager] initialized
[2020-09-03T09:41:02,777][INFO ][o.e.n.Node               ] [manager] starting ...
[2020-09-03T09:41:02,903][INFO ][o.e.t.TransportService   ] [manager] publish_address {10.1.106.5:9200}, bound_addresses {[::]:9200}
[2020-09-03T09:41:03,307][INFO ][o.e.b.BootstrapChecks    ] [manager] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2020-09-03T09:41:03,310][ERROR][o.e.b.Bootstrap          ] [manager] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2020-09-03T09:41:03,314][INFO ][o.e.n.Node               ] [manager] stopping ...
[2020-09-03T09:41:03,340][INFO ][o.e.n.Node               ] [manager] stopped
[2020-09-03T09:41:03,340][INFO ][o.e.n.Node               ] [manager] closing ...
[2020-09-03T09:41:03,364][INFO ][o.e.n.Node               ] [manager] closed
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

Please read https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.