ELK
ELK
ELASTIC SEARCH,
LOGSTASH,
KIBANA
& BEATS
What is Elastic stack?
What is Elastic stack?
Installing ElasticSearch
● Lunch the ubuntu 16 Server with 4gb ram,EIP.
● #apt-get update
● #apt-get install openjdk-8-jre-headless
# wget
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.3.deb
#dpkg -i elasticsearch-5.6.3.deb
● Change the vi /etc/elasticsearch/elasticsearch.yml
cluster.name : globo-clustering
Node.name : public DNS of Elasticsreach (in production only
private DNS)
Network.host : private ip of elasticsreach / public ip
● Increase the memory map count by ‚
# sysctl -w vm.max_map_count=262144
● Restart services
● Test by executing
http://<ipadress>:9200
http://54.169.238.188:5601
winlogbeat-*
timestap@
Create
Descover
Visualization
save
Install
Metricbeat on windows
https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.2.4-w
indows-x86_64.zip
Extract
Rename to metricbeat, then copy paste in c://program files
metricbeats.yml
tags: ["ap-southeast-1"]
fields:
globo_environment: production
Comment the elasticsearch
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["13.229.50.243:5044"]
Winpcap download install
Install-service-metricbeat.ps1
#curl -L -O
https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.6.4-x86_64
.rpm
#cd /etc/filebeat/
Vi filebeat.yml
tags: ["ap-southeast-1"]
fields:
globo_environment: production
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["13.229.50.243:5044"]
curl -H 'Content-Type: application/json' -XPUT
'http://3.12.147.174:9200/_template/filebeat'
-d@/etc/filebeat/filebeat.template.json