Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxmalaysia/397c58a7d0bb2f6ee280d8563721898b to your computer and use it in GitHub Desktop.
Save linuxmalaysia/397c58a7d0bb2f6ee280d8563721898b to your computer and use it in GitHub Desktop.
Monitoring Setting For Elastic Stack 7.x
*** Monitoring Setting For Elastic Stack 7.x ***
===> elasticsearch.yml
xpack.monitoring.enabled: true
xpack.monitoring.collection.enabled: true
===> kibana.yml
xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: true
xpack.monitoring.ui.enabled: true
===> logstash.yml
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
xpack.monitoring.elasticsearch.sniffing: true
xpack.monitoring.collection.pipeline.details.enabled: true
=== *** ===
*** Beats Installation Simple Note ***
apt install filebeat
apt install metricbeat
apt install auditbeat
apt install packetbeat
apt install heartbeat-elastic
===> dont install heartbeat package. Its other software not from elastic
# ==> Make sure all beats xml configuration files, upload dashboard using kibana is done first time only or after upgrade
# ===>
# 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
==> Done the above before proceed to run the beats. Onlyonce at any one node. And repeat again for every upgrade.
filebeat modules enable system iptables elasticsearch auditd kibana logstash
metricbeat modules enable system elasticsearch kibana logstash docker kubernetes logstash-xpack kibana-xpack elasticsearch-xpack
===> for other beats edit inside each config xml. For heartbeat need to edit xml files inside monitor.d
systemctl enable filebeat
systemctl enable metricbeat
systemctl enable auditbeat
systemctl enable packetbeat
systemctl enable heartbeat-elastic
systemctl restart filebeat
systemctl restart metricbeat
systemctl restart auditbeat
systemctl restart packetbeat
systemctl restart heartbeat-elastic
### Harisfazillah Jamel 09092019
### update 31012020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment