Hello,
Still learning the set up of elastic stack, I am now stuck with metricbeat failing to register my logstash node on Kibana. However I could successfully register and monitor Elasticsearch and Kibana using metricbeat. Only stuck with Logstash.
Here is how my metricbeat monitor page looks like:
As you could see Logstash node is not detected. I followed the set up steps mentioned in the stack monitoring setup page, but in vain.
Here is my logstash.yml file:
pipeline.batch.size: 125
- pipeline.batch.delay: 5*
- node.name: dlmlogstash*
path.data: /var/lib/logstash - pipeline.id: main*
- pipeline.workers: 2*
path.config:/etc/logstash/conf.d/
log.level: info
path.logs: /var/log/logstash
xpack.monitoring.enabled: true
xpack.monitoring.Elasticsearch.username: elastic
xpack.monitoring.Elasticsearch.password: passwd
xpack.monitoring.Elasticsearch.hosts: ["http://xx.xx.xx.xx:9200"]
output.Elasticsearch:
- hosts: ["http://xx.xx.xx.xx:5601"]*
- username: "elastic"*
- password: "passwd"*
Here are my metricbeat set ups:
metricbeat.yml:
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: ldxxxxx
setup.kibana:
- host: "xx.xx.xx.xx:5601"*
output.Elasticsearch:
- hosts: ["xx.xx.xx.xx:9200"]*
- protocol: "http"*
- username: "elastic"*
- password: "passwd"*
processors:
-
- add_host_metadata: ~*
-
- add_cloud_metadata: ~*
-
- add_docker_metadata: ~*
-
- add_kubernetes_metadata: ~*
logging.level: info
logging.selectors: [""]*
logging.to_files: true
logging.files:
- path: /var/log/metricbeat*
- name: metricbeat*
- keepfiles: 7*
- permissions: 0644*
monitoring.enabled: true
monitoring.Elasticsearch:
logstash-xpack.yml:
# Module: logstash
# Docs: Logstash module | Metricbeat Reference [master] | Elastic
- module: logstash
- xpack.enabled: true*
- period: 10s*
- hosts: ["xx.xx.xx.xx:9600"]*
- username: "elastic"*
- password: "passwd"*
Could you please guide me as to where I should focus in order to rectify this?
Thanks and regards,
Ashiq Aboo Backer