Skip to content

Instantly share code, notes, and snippets.

@markwalkom
Last active March 9, 2020 19:05
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save markwalkom/f3b2c70617d0158b582aed3e214ca9a6 to your computer and use it in GitHub Desktop.
LCA2019 - Awesome Monitoring Infrastructure Using the Elastic Stack

Metricbeat

https://www.elastic.co/guide/en/beats/metricbeat/current/index.html

./metricbeat
./metricbeat setup --help
./metricbeat modules --help

./metricbeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'

curl -XDELETE 'http://localhost:9200/metricbeat-*'

./metricbeat setup --dashboards

Filebeat

https://www.elastic.co/guide/en/beats/filebeat/current/index.html

./filebeat
./filebeat setup --help
./filebeat modules --help

./filebeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'

curl -XDELETE 'http://localhost:9200/filebeat-*'

./filebeat setup --dashboards

Packetbeat

https://www.elastic.co/guide/en/beats/packetbeat/current/index.html

./packetbeat
./packetbeat setup --help
./packetbeat modules --help

./packetbeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'

curl -XDELETE 'http://localhost:9200/packetbeat-*'

./packetbeat setup --dashboards

Heartbeat

https://www.elastic.co/guide/en/beats/heartbeat/current/index.html

./heartbeat
./heartbeat setup --help
./heartbeat modules --help

./heartbeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'

curl -XDELETE 'http://localhost:9200/heartbeat-*'

./heartbeat setup --dashboards

version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
environment:
discovery.type: single-node
container_name: elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:6.5.4
links:
- elasticsearch
ports:
- 5601:5601
environment:
SERVER_NAME: localhost:9200
volumes:
esdata:
driver: local

Elasticsearch

https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docker.html

docker pull docker.elastic.co/elasticsearch/elasticsearch:6.5.4
docker pull docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4

docker run docker.elastic.co/elasticsearch/elasticsearch:6.5.4

Kibana

https://www.elastic.co/guide/en/kibana/6.5/index.html

docker pull docker.elastic.co/kibana/kibana:6.5.4
docker pull docker.elastic.co/kibana/kibana-oss:6.5.4

docker run docker.elastic.co/kibana/kibana:6.5.4

Docker Compose

docker-compose up
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment