# Hard time setting up monitoring cluster using metricbeat

**URL:** https://discuss.elastic.co/t/hard-time-setting-up-monitoring-cluster-using-metricbeat/278088
**Category:** Elasticsearch
**Created:** [July 7, 2021, 3:38pm UTC](https://discuss.elastic.co/t/hard-time-setting-up-monitoring-cluster-using-metricbeat/278088 "2021-07-07T15:38:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [July 7, 2021, 3:38pm UTC](https://discuss.elastic.co/t/hard-time-setting-up-monitoring-cluster-using-metricbeat/278088/1 "2021-07-07T15:38:39Z")

</div>

I have follow few document of elk. it making me more confuse  
what am I missing?

this is my simple test that I am trying to run.  
elkprod01 single node cluster  
elkmonprod01 is single node cluster ( which I would like to setup as monitoring cluster)

on elkprod01 system

cat /etc/elasticsearch/elasticsearch.yml |grep -v '#' |sed '/^$/d'

```auto
cluster.name: elk-prod
node.name: elkprod01
node.roles: [master,ingest,transform,data,data_hot]
path.data: /data01/elasticsearch
path.logs: /data01/log/elasticsearch
network.host: 10.29.254.74
discovery.seed_hosts: ["elkprod01"]
action.destructive_requires_name: true
xpack.security.enabled: true

```

cat /etc/metricbeat/metricbeat.yml |grep -v '#' |sed '/^$/d'

```auto
metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression
output.elasticsearch:
  hosts: ["elkmonprod01:9200"]
  username: "elastic"
  password: "elastic"

```

cat /etc/metricbeat/modules.d/elasticsearch-xpack.yml |grep -v '#' |sed '/^$/d'

```auto
- module: elasticsearch
  xpack.enabled: true
  scope: node
  period: 30s
  hosts: ["http://elkprod01:9200"]
  username: "elastic"
  password: "elastic"

```

Now on elkmonprod01

```auto
cluster.name: mon-prod
node.roles: [master,ingest,transform,data,data_hot]
path.data: /data01/elasticsearch
path.logs: /data01/log/elasticsearch
network.host: 10.29.254.86
discovery.seed_hosts: ["elkmonprod01"]
cluster.initial_master_nodes: ["elkmonprod01"]
action.destructive_requires_name: true
xpack.monitoring.collection.enabled: false

```

cat /etc/kibana/kibana.yml |grep -v '#' |sed '/^$/d'

```auto
server.port: 5601
server.host: "elkmonprod01"
server.name: "elkmonprod01"
elasticsearch.hosts: ["http://elkmonprod01:9200"]
elasticsearch.username: "kibana_system"
elasticsearch.password: "kibana"
monitoring.ui.enabled:true
monitoring.ui.elasticsearch.hosts: ["http://elkmonprod01:9200"]

```

I do see any index coming to elkmonprod01.

---

<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: [August 4, 2021, 3:38pm UTC](https://discuss.elastic.co/t/hard-time-setting-up-monitoring-cluster-using-metricbeat/278088/2 "2021-08-04T15:38:40Z")

</div>

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