# Metricbeat

**URL:** <https://discuss.elastic.co/t/metricbeat/313660>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 5, 2022, 8:14am UTC](https://discuss.elastic.co/t/metricbeat/313660 "2022-09-05T08:14:15Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 5, 2022, 8:14am UTC](https://discuss.elastic.co/t/metricbeat/313660/1 "2022-09-05T08:14:15Z")

</div>

i am geting error in connecting metricbeat to kibana as it shows in logs

ERROR [kibana.stats] stats/stats.go:82 error making http request: Get [http://localhost:5601/api/status:](http://localhost:5601/api/status:) dial tcp 127.0.0.1:5601: connection refused

can you please help me out in fixing it ?

---

<div class="post-metadata">

**Author:** ![cheshirecat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheshirecat/32/109532_2.png) [@cheshirecat](https://discuss.elastic.co/u/cheshirecat)\
**Post date:** [September 5, 2022, 9:05am UTC](https://discuss.elastic.co/t/metricbeat/313660/2 "2022-09-05T09:05:56Z")

</div>

Hello There!  
Please paste your metricbeat and kibana conf files.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 5, 2022, 2:57pm UTC](https://discuss.elastic.co/t/metricbeat/313660/3 "2022-09-05T14:57:38Z")

</div>

> [@Shashi\_Prakash](#):
>
> [http://localhost:5601/api/status:](http://localhost:5601/api/status:)

I metricbeat running on the same host as kibana?

Otherwise you will need to set the appropriate kibab

```auto
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: "mykibanahost:5601" <!---- HERE

```

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 6, 2022, 5:14am UTC](https://discuss.elastic.co/t/metricbeat/313660/4 "2022-09-06T05:14:20Z")

</div>

hi , my kibana and metricbeat are on same comp and its one node only.

pastin my metricbeat.yml and then kibana.yml

metricbeat.yml-----

```auto
# =========================== Modules configuration ============================

metricbeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: true

  # Period on which files under path should be checked for changes
  #reload.period: 10s

# ======================= Elasticsearch template setting =======================

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: "192.168.0.209: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 Metricbeat 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: ["localhost:9200"]

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

  # 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 =================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_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 ==============================
# Metricbeat 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: true

# Sets the UUID of the Elasticsearch cluster under which monitoring data for this
# Metricbeat 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:

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

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

```

KIBANA.yml---

```auto
# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: 192.168.0.209

# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""

# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# This setting was effectively always `false` before Kibana 6.3 and will
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false

# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576

# The Kibana server's name. This is used for display purposes.
#server.name: "HULk-209"

# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://192.168.0.209:9200"]
# When this setting's value is true Kibana uses the hostname specified in the server.host
# setting. When the value of this setting is false, Kibana uses the hostname of the host
# that connects to this Kibana instance.
#elasticsearch.preserveHost: true
#xpack.encryptedSavedObjects.encryptionKey = "1111111111111111111111111111111111111"
# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
#kibana.index: ".kibana"

# The default application to load.
#kibana.defaultAppId: "home"

# If your Elasticsearch is protected with basic authentication, these settings provide
# the username and password that the Kibana server uses to perform maintenance on the Kibana
# index at startup. Your Kibana users still need to authenticate with Elasticsearch, which
# is proxied through the Kibana server.
#elasticsearch.username: "elsatic"
#elasticsearch.password: "elastic"

# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.
# These settings enable SSL for outgoing requests from the Kibana server to the browser.
#server.ssl.enabled: false
#server.ssl.certificate: /path/to/your/server.crt
#server.ssl.key: /path/to/your/server.key

# Optional settings that provide the paths to the PEM-format SSL certificate and key files.
# These files are used to verify the identity of Kibana to Elasticsearch and are required when
# xpack.security.http.ssl.client_authentication in Elasticsearch is set to required.
#elasticsearch.ssl.certificate: /path/to/your/client.crt
#elasticsearch.ssl.key: /path/to/your/client.key

# Optional setting that enables you to specify a path to the PEM file for the certificate
# authority for your Elasticsearch instance.
#elasticsearch.ssl.certificateAuthorities: ["/path/to/your/CA.pem"]

# To disregard the validity of SSL certificates, change this setting's value to 'none'.
#elasticsearch.ssl.verificationMode: full

# Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of
# the elasticsearch.requestTimeout setting.
#elasticsearch.pingTimeout: 1500

# Time in milliseconds to wait for responses from the back end or Elasticsearch. This value
# must be a positive integer.
#elasticsearch.requestTimeout: 30000

# List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side
# headers, set this value to [] (an empty list).
#elasticsearch.requestHeadersWhitelist: [authorization]

# Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
# by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration.
#elasticsearch.customHeaders: {}

# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
#elasticsearch.shardTimeout: 30000

# Time in milliseconds to wait for Elasticsearch at Kibana startup before retrying.
#elasticsearch.startupTimeout: 5000

# Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
#elasticsearch.logQueries: false

# Specifies the path where Kibana creates the process ID file.
#pid.file: /var/run/kibana.pid

# Enables you specify a file where Kibana stores log output.
#logging.dest: stdout

# Set the value of this setting to true to suppress all logging output.
#logging.silent: false

# Set the value of this setting to true to suppress all logging output other than error messages.
#logging.quiet: false

# Set the value of this setting to true to log all events, including system usage information
# and all requests.
#logging.verbose: false

# Set the interval in milliseconds to sample system and process performance
# metrics. Minimum is 100ms. Defaults to 5000.
#ops.interval: 5000

# Specifies locale to be used for all localizable strings, dates and number formats.
# Supported languages are the following: English - en , by default , Chinese - zh-CN .
#i18n.locale: "en"
#
#Sentinl Configuration

```

---

<div class="post-metadata">

**Author:** ![cheshirecat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheshirecat/32/109532_2.png) [@cheshirecat](https://discuss.elastic.co/u/cheshirecat)\
**Post date:** [September 6, 2022, 6:48am UTC](https://discuss.elastic.co/t/metricbeat/313660/6 "2022-09-06T06:48:41Z")

</div>

Hello 🙂

> [@Shashi\_Prakash](#):
>
> ` hosts: ["localhost:9200"]`

Please don't use `localhost` and use fixed ip address.  
Is your Kibana instance online?  
I don't see `server.publicBaseUrl:` in your Kibana config.

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 6, 2022, 7:58am UTC](https://discuss.elastic.co/t/metricbeat/313660/7 "2022-09-06T07:58:14Z")

</div>

yes kibana is online and its also fetching log files from filebeat.  
elasticsearch status is also green.

i made changes on hosts url but still it causing issue in connecting to kibana url  
here are metricbeat logs

```auto
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.558+0530 INFO [index-management.ilm] ilm/std.go:139 do not generate ilm policy: exists=true, overwrite=false
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.558+0530 INFO [index-management] idxmgmt/std.go:274 ILM policy successfully loaded.
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.558+0530 INFO [index-management] idxmgmt/std.go:407 Set setup.template.name to '{metricbeat-7.8.1 {now/d}-000001}' as ILM is enabled.
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.558+0530 INFO [index-management] idxmgmt/std.go:412 Set setup.template.pattern to 'metricbeat-7.8.1-*' as ILM is enabled.
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.558+0530 INFO [index-management] idxmgmt/std.go:446 Set settings.index.lifecycle.rollover_alias in template to {metricbeat-7.8.1 {now/d}-0000
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.559+0530 INFO [index-management] idxmgmt/std.go:450 Set settings.index.lifecycle.name in template to {metricbeat {"policy":{"phases":{"hot":{
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.559+0530 INFO template/load.go:89 Template metricbeat-7.8.1 already exists and will not be overwritten.
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.559+0530 INFO [index-management] idxmgmt/std.go:298 Loaded index template.
Sep 06 13:40:10 hulk metricbeat[97261]: 2022-09-06T13:40:10.834+0530 ERROR [kibana.stats] stats/stats.go:82 error making http request: Get http://localhost:5601/api/status: dial tcp 127.0.0.1:5601: conection refused
Sep 06 13:43:21 hulk metricbeat[97261]: 2022-09-06T13:43:21.054+0530 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks

```

---

<div class="post-metadata">

**Author:** ![cheshirecat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheshirecat/32/109532_2.png) [@cheshirecat](https://discuss.elastic.co/u/cheshirecat)\
**Post date:** [September 6, 2022, 8:15am UTC](https://discuss.elastic.co/t/metricbeat/313660/8 "2022-09-06T08:15:09Z")

</div>

In your `metricbeat.yml` you use:

> [@Shashi\_Prakash](#):
>
> ` host: "192.168.0.209:5601"`

but it should be with `http://` or `https://` as mentioned in instruction:

> [@Shashi\_Prakash](#):
>
> ```auto
> # 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
> 
> ```

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 6, 2022, 8:36am UTC](https://discuss.elastic.co/t/metricbeat/313660/9 "2022-09-06T08:36:47Z")

</div>

i am still getting same error although changed my metricbeat.yml to this

```auto
###################### Metricbeat Configuration Example #######################

# This file is an example configuration file highlighting only the most common
# options. The metricbeat.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/metricbeat/index.html

# =========================== Modules configuration ============================

metricbeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: true

  # Period on which files under path should be checked for changes
  #reload.period: 10s

# ======================= Elasticsearch template setting =======================

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://192.168.0.209: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 Metricbeat 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: "192.168.0.209:9200"

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

  # 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 =================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_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: ["*"]

#==============================modules========================================
metricbeat.modules:
  - module: system
    enabled: true
    period: 10s
    metricsets:
      - cpu # CPU usage
      - load # CPU load averages
      - memory # Memory usage
      - network # Network IO
      - process # Per process metrics
      - process_summary # Process summary
      - uptime # System Uptime
      - socket_summary # Socket summary
      #- core # Per CPU core usage
      - diskio # Disk IO
      - filesystem # File system usage for each mountpoint
      #- fsstat # File system summary metrics
      #- raid # Raid
      - socket # Sockets and connection info (linux only)
      - service # systemd service information

# ============================= X-Pack Monitoring ==============================
# Metricbeat 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: true

# Sets the UUID of the Elasticsearch cluster under which monitoring data for this
# Metricbeat 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: "sS5a9QJzTVioqo48UuZXiA"

# 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:

http.enabled: true
http.port: 5066        
# ================================= Migration ==================================

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

```

```auto
Sep 06 14:04:52 hulk metricbeat[127910]: 2022-09-06T14:04:52.117+0530 ERROR [kibana.stats] stats/stats.go:82 error making http request: Get http://localhost:5601/api/status: dial tcp 127.0.0.1:5601: conection refused

```

---

<div class="post-metadata">

**Author:** ![cheshirecat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheshirecat/32/109532_2.png) [@cheshirecat](https://discuss.elastic.co/u/cheshirecat)\
**Post date:** [September 6, 2022, 8:47am UTC](https://discuss.elastic.co/t/metricbeat/313660/10 "2022-09-06T08:47:20Z")

</div>

What modules have you enabled?

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 6, 2022, 9:17am UTC](https://discuss.elastic.co/t/metricbeat/313660/11 "2022-09-06T09:17:45Z")

</div>

only these 3

Enabled:  
beat-xpack  
elasticsearch-xpack  
kibana-xpack

but i dont think ,module is causing issue in establishing a connection to kibana UI

---

<div class="post-metadata">

**Author:** ![cheshirecat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheshirecat/32/109532_2.png) [@cheshirecat](https://discuss.elastic.co/u/cheshirecat)\
**Post date:** [September 6, 2022, 9:43am UTC](https://discuss.elastic.co/t/metricbeat/313660/12 "2022-09-06T09:43:31Z")

</div>

Why you are so sure about that?

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 6, 2022, 11:19am UTC](https://discuss.elastic.co/t/metricbeat/313660/13 "2022-09-06T11:19:50Z")

</div>

bcoz metriclogs dont raising issue anything about these as of now..  
metricbeat is unable to connect to kibana

error making http request: Get [http://localhost:5601/api/status:](http://localhost:5601/api/status:) dial tcp 127.0.0.1:5601: connection refused

---

<div class="post-metadata">

**Author:** ![cheshirecat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheshirecat/32/109532_2.png) [@cheshirecat](https://discuss.elastic.co/u/cheshirecat)\
**Post date:** [September 6, 2022, 11:23am UTC](https://discuss.elastic.co/t/metricbeat/313660/14 "2022-09-06T11:23:47Z")

</div>

Once again... in your `metricbeat.yml` there is no such thing as `http://localhost:5601`. It is in your module configuration file. Please paste this module conf file here.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 6, 2022, 2:24pm UTC](https://discuss.elastic.co/t/metricbeat/313660/15 "2022-09-06T14:24:05Z")

</div>

> [@Shashi\_Prakash](#):
>
> kibana-xpack

Please show that module

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 7, 2022, 5:35am UTC](https://discuss.elastic.co/t/metricbeat/313660/16 "2022-09-07T05:35:36Z")

</div>

have enabled only 3 modules  
beat-xpack,elasticsearch-xpack and kibana-xpack

beat-xpack.yml config file --

```auto
# Module: beat
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.8/metricbeat-module-beat.html

- module: beat
  xpack.enabled: true
  period: 10s
  hosts: ["http://localhost:5066"]
  #username: "user"
  #password: "secret"

elasticsearch-xpack.yml file

```

# Module: elasticsearch

# Docs: [Elasticsearch module | Metricbeat Reference [7.8] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/7.8/metricbeat-module-elasticsearch.html)

- module: elasticsearch  
xpack.enabled: true  
period: 10s  
hosts: ["[http://localhost:9200](http://localhost:9200)"]  
#username: "user"  
#password: "secret"

```auto

kibana-xpack.yml

```

# Module: kibana

# Docs: [Kibana module | Metricbeat Reference [7.8] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/7.8/metricbeat-module-kibana.html)

- module: kibana  
xpack.enabled: true  
period: 10s  
hosts: ["localhost:5601"]  
#basepath: ""  
#username: "user"  
#password: "secret"

```auto

```

---

<div class="post-metadata">

**Author:** ![Shashi\_Prakash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashi_prakash/32/100185_2.png) [@Shashi\_Prakash](https://discuss.elastic.co/u/Shashi_Prakash)\
**Post date:** [September 7, 2022, 6:49am UTC](https://discuss.elastic.co/t/metricbeat/313660/17 "2022-09-07T06:49:59Z")

</div>

changed kibana module file  
host from localhost to complete ip address and deleted metricbeat index and recreated and it worked.

thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 5, 2022, 6:50am UTC](https://discuss.elastic.co/t/metricbeat/313660/18 "2022-10-05T06:50:37Z")

</div>

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