# Metricbeat host not showing on kibana as well as not creating index

**URL:** https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567
**Category:** Beats
**Tags:** metricbeat
**Created:** [December 21, 2021, 12:58pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567 "2021-12-21T12:58:08Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [December 21, 2021, 12:58pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/1 "2021-12-21T12:58:08Z")

</div>

After install the metricbeat on localhost elk server its showing on kibana dashboard but when metricbeat installing on another machine metricbeat host are not showing except elk localhost metricbeat host.

metricbeat version: 7.16.2  
Kibana version: v 7.16.1  
Elastic version: 7.16.1

---

<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: [December 21, 2021, 7:07pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/2 "2021-12-21T19:07:45Z")

</div>

@jonoyo

Most likely you have not changed the network settings and therefore Elasticsearch is only bound to `localhost` and cannot be reached from other hosts

Please see here

> **[Important Elasticsearch configuration | Elasticsearch Guide \[7.16\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#network.host)**

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [December 21, 2021, 8:23pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/3 "2021-12-21T20:23:08Z")

</div>

If that's not the case, you will need to provide your Metricbeat config and logs.

---

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [December 22, 2021, 4:55am UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/4 "2021-12-22T04:55:14Z")

</div>

I have already configured network host to any host (0.0.0.0). Also configured server host to any host (0.0.0.0). Here is the configuration I have done..

### elasticsearch.yml###

root@elkserver:~# cat /etc/elasticsearch/elasticsearch.yml | grep -v "#"  
cluster.name: elk-server  
node.name: elk-node  
path.data: /var/lib/elasticsearch  
path.logs: /var/log/elasticsearch  
network.host: 0.0.0.0  
discovery.type: single-node

xpack.security.enabled: true  
xpack.monitoring.collection.enabled: true  
xpack.security.authc.api\_key.enabled: true  
xpack.monitoring.elasticsearch.collection.enabled: true

####kibana.yml#####  
server.port: 5601  
server.host: "0.0.0.0"  
server.publicBaseUrl: "[http://172.16.10.10:5601/](http://172.16.10.10:5601/)"  
server.name: "kibana-server"  
elasticsearch.hosts: ["[http://localhost:9200](http://localhost:9200)"]  
elasticsearch.username: "kibana"  
elasticsearch.password: "zeus"

######metricbeat.yml of remote host#####

metricbeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: true  
reload.period: 10s  
setup.template.settings:  
index.number\_of\_shards: 1  
index.codec: best\_compression  
name: nagios  
tags: ["nagios"]  
setup.kibana:  
host: "172.16.10.10:5601"  
output.elasticsearch:  
hosts: ["172.16.10.10:9200"]  
protocol: "http"  
username: "elastic"  
password: "atom"  
processors:

- add\_host\_metadata: ~
- add\_cloud\_metadata: ~
- add\_docker\_metadata: ~
- add\_kubernetes\_metadata: ~  
logging.level: debug  
logging.selectors: ["\*"]  
logging.to\_files: true  
logging.files:  
path: /var/log/metricbeat  
name: metricbeat  
keepfiles: 7  
permissions: 0644  
monitoring.enabled: true  
monitoring.elasticsearch:

##### metricbeat log of remote host

2021-12-22T10:51:11.362+0600 DEBUG [elasticsearch] elasticsearch/client.go:232 PublishEvents: 50 events have been published to elasticsearch in 41.955739ms.  
2021-12-22T10:51:11.364+0600 DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [24371: 0, 50]  
2021-12-22T10:51:11.364+0600 DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:50  
2021-12-22T10:51:11.364+0600 DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack  
2021-12-22T10:51:11.380+0600 DEBUG [elasticsearch] elasticsearch/client.go:232 PublishEvents: 50 events have been published to elasticsearch in 17.998645ms.  
2021-12-22T10:51:11.381+0600 DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [24372: 0, 50]  
2021-12-22T10:51:11.381+0600 DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:50  
2021-12-22T10:51:11.381+0600 DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack  
2021-12-22T10:51:11.399+0600 DEBUG [elasticsearch] elasticsearch/client.go:232 PublishEvents: 50 events have been published to elasticsearch in 18.60274ms.  
2021-12-22T10:51:11.399+0600 DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [24373: 0, 50]  
2021-12-22T10:51:11.400+0600 DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:50  
2021-12-22T10:51:11.400+0600 DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack  
2021-12-22T10:51:11.407+0600 DEBUG [elasticsearch] elasticsearch/client.go:232 PublishEvents: 18 events have been published to elasticsearch in 7.561235ms.  
2021-12-22T10:51:11.407+0600 DEBUG [publisher] memqueue/ackloop.go:160 ackloop: receive ack [24374: 0, 18]  
2021-12-22T10:51:11.407+0600 DEBUG [publisher] memqueue/ackloop.go:128 ackloop: return ack to broker loop:18  
2021-12-22T10:51:11.407+0600 DEBUG [publisher] memqueue/ackloop.go:131 ackloop: done send ack

---

<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: [December 22, 2021, 4:58pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/5 "2021-12-22T16:58:53Z")

</div>

Which module are you using?

Did you edit the `system.yml` on the remote host?

Can you show where / how the other servers are not showing?

If you go to Discover index pattern `metricbeat-*` and click on host.name field do you see the different hosts listed? Or in the KQL bar if you type in `host.name :` do you not see the other hosts?

The logs from the remote host look like they are sending to Elasticsearch but at the beginning of those logs you should see where metricbeat makes a connection to Elasticsearch you would want to verify that.

---

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [December 22, 2021, 6:03pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/6 "2021-12-22T18:03:15Z")

</div>

Thanks for your reply. Yes I edited system.yml and beat-xpack.yml on the remote host. In the index pattern I can see the host but when I check at the inventory I don't see the remote host. I only see the localhost. Here is the screenshot.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/b/abf338c6ced909180228daa4bc8378418ed1b954.png)

But when I check at the beats remote host metricbeat is active. Here is the screenshot.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aa971042a20658baa5aeb59e2c264479e14d3faa.png)

When I try to check the remote host dashboard I also can't find the dashboard rather than elasticserch server host.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75eec850039cd2c3368397bef88fd3209615f1d3.png)

---

<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: [December 22, 2021, 6:09pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/7 "2021-12-22T18:09:07Z")

</div>

> [@jonoyo](#):
>
> system.yml and beat-xpack.yml

What Changes did you make? What is beat-xpack.yml? I am not familiar with that...

I suspect the setup or mapping is not correct...

If you just set up the remote host metricbeat and do not edit anything except set the elasticsearch and kibana endpoints in the `metricbeat.yml` does it work?

I know this sounds silly but the remote host has a different name right?

---

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [December 22, 2021, 6:22pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/8 "2021-12-22T18:22:18Z")

</div>

I have found on github beat-xpack.yml module monitor the beats on the system. When I disabled the modules that means just set up the host metricbeat only, the result is same. Here is the system.yml and beat-xpack.yml

####system.yml#####

# Module: system

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

- module: system  
period: 10s  
metricsets:
  - cpu
  - load
  - memory
  - network
  - process
  - process\_summary
  - socket\_summary
  - entropy
  - core
  - diskio
  - socket
  - service
  - users  
process.include\_top\_n:  
by\_cpu: 5 # include top 5 processes by CPU  
by\_memory: 5 # include top 5 processes by memory

# Configure the mount point of the host’s filesystem for use in monitoring a host from within a container

#system.hostfs: "/hostfs"

- module: system  
period: 1m  
metricsets:

- module: system  
period: 15m  
metricsets:

#- module: system

# period: 5m

# metricsets:

# - raid

# raid.mount\_point: '/'

#####beat-xpack.yml######

# Module: beat

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

- module: beat  
xpack.enabled: true  
period: 10s  
hosts: ["[http://localhost:5066](http://localhost:5066)"]  
username: "beats\_system"  
password: "twincities"

---

<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: [December 22, 2021, 6:34pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/9 "2021-12-22T18:34:01Z")

</div>

Can you please format your code? It is Hard to read.. I can not tell what it is ... use the `</>` button

If you are using a config you found elsewhere is is hard to help.

The beat module does not do system metrics...

Please just install metricbeat on a remote host ... NOT the host that Elasticsearch is running on...  
make no changes, do not use the github config, and ONLY set the `output.elasticsearch` in the metribeat.yml and then run metricbeat.

```auto
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["elasticsearch_host:9200"] <!-- The Host Elasticsearch is running on

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

```

You can also simply set this in the metricbeat.yml and metricbeat monitoring will be enabled and same to the same Elasticsearch.

```auto
# Set to true to enable the monitoring reporter.
monitoring.enabled: true

```

---

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [December 22, 2021, 6:57pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/10 "2021-12-22T18:57:50Z")

</div>

Thanks a lot. Now metricbeat is showing. Here is the screenshot.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca407a32235838920a26d087dda964c8851cf362.png)

My goal is to monitor my "ceph nodes" resource using metric ceph module of metricbeat. That is why I was trying first to monitor linux host using metricbeat. What could be best the solution if I want to monitor my ceph nodes?

---

<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: [December 22, 2021, 7:10pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/11 "2021-12-22T19:10:08Z")

</div>

Excellent

First stop metricbeat

Now I would go into the system.yml and turn on the other metrics that you might want.

Then I would enable the ceph module and go in and set the right setting.

> **[Ceph module | Metricbeat Reference \[7.16\] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-ceph.html)**

I would make sure you also set this in the metricbeat.tml

```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: "elasticsearchhost:5601"

```

then run `setup` , which will load the ceph module assets  
`metricbeat setup`  
then start metricbeat

---

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [December 23, 2021, 3:18am UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/12 "2021-12-23T03:18:12Z")

</div>

Thanks a lot for your help. It is such a great community. 🙂

---

<div class="post-metadata">

### Author: ![jonoyo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jonoyo](https://discuss.elastic.co/u/jonoyo)
#### Post date: [January 5, 2022, 6:00am UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/13 "2022-01-05T06:00:56Z")

</div>

I am facing another problem now. I have already enabled system module of metricbeat in other hosts and uncomment the metricset. But there are many items are not showing in dashboard like below snapshot. Is there any other beat need to be configured? But all items are showing at elk localhost.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/6486b9fa334998b35dac194c060d5f86ee9792a0.png)

---

<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: [January 5, 2022, 6:52pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/14 "2022-01-05T18:52:01Z")

</div>

Please see this topic / post.. there is a bug.

> [@Metrics Disappearing](https://discuss.elastic.co/t/metrics-disappearing/292488/3):
>
> Apologies.. Well I think I found it and I think it is a bug / regression... This is on my 7.16.0 Cluster. ...I have opened a bug [here](https://github.com/elastic/kibana/issues/121684) There is a rather lengthy explanation I will not bore you with but the fix is pretty simple although unfortunate. In short the data should be dropping the last "Partial Bucket" and it is not ... You can fix this by doing the following steps on each visualization it will take about 1 min or less each. In short there is a setting wrong in several of the Visualiz…

---

<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: [February 2, 2022, 6:52pm UTC](https://discuss.elastic.co/t/metricbeat-host-not-showing-on-kibana-as-well-as-not-creating-index/292567/15 "2022-02-02T18:52:12Z")

</div>

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