ELK 요약
1. ELK summary
- What
The ELK Stack is “made up for it”, ie specialized. Our role becomes customize: Collect the data in the best way, automate demand (or do batch collection) and creating good reports for presentation of results or evidence to meet our need.
2. Logstash
https://www.elastic.co/kr/products/logstash
logstash demo(console input/output, grok filter)
- 기본 예제
## 아래 콘솔 입력을 필터링해서 콘솔로 출력할 때의 예제
## 2016-12-19 00:00:05.908 [error] <127.0.0.1> sample data
input {
stdin {}
}
filter {
grok {
match => { "message" => "%{TIMESTAMP_ISO8601:time} \[%{LOGLEVEL:level}\] \<%{IP:ip}\> %{GREEDYDATA:contents}" }
}
}
output {
stdout { codec => rubydebug }
}
- 다른 예제
- Demo : https://asciinema.org/a/4ubbukjn4x5qpu44t7zhg1s7j
- Grok Debugger : https://grokdebug.herokuapp.com/
3. Beats
-
https://github.com/elastic/beats
-
Demo (FileBeat, HttpBeat)
4. Elasticsearch
https://www.elastic.co/kr/products/elasticsearch
- SQL plugin
https://github.com/NLPchina/elasticsearch-sql
-
shard & replica
http://guruble.com/?p=85
5. Kibana
https://www.elastic.co/kr/products/kibana
- Demo : http://demo.elastic.co/beats/app/kibana