Рет қаралды 4,736
This video we went through how do we deploy ELK stack to AWS manually. Here is the key steps to review:
1. sudo apt-get update && sudo apt-get upgrade -y
2. sudo apt-get install default-jre -y
3. Install ElasticSearch, Logstash, MetricBeat and Kibana followed the instruction on documentation via package manager:
www.elastic.co/guide/en/elast...
4. Start each ELK stack as service.
Example of logstash config:
/etc/logstash/conf.d/apache.conf
input {
file {
path = "/home/ubuntu/apache-daily-access.log"
start_position = "beginning"
sincedb_path = "/dev/null"
}
}
filter {
grok {
match = { "message" = "%{COMBINEDAPACHELOG}" }
}
date {
match = [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
geoip {
source = "clientip"
}
}
output {
elasticsearch {
hosts = ["localhost:9200"]
}
}
Timestamp:
0:00 - Intro
05:42 - Spin up EC2 instance via Terraform module
14:41 - Install & Configure ELK stack on EC2 instance
28:46 - Configure index pattern on Kibana