Skip to content

Instantly share code, notes, and snippets.

@y2468101216
Created January 26, 2018 05:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y2468101216/17f72f601d2f0308766c756744609c8f to your computer and use it in GitHub Desktop.
Save y2468101216/17f72f601d2f0308766c756744609c8f to your computer and use it in GitHub Desktop.

Aws Elasticsearch Service 踩雷紀錄

前言

本文是為了幫助那些想使用 Aws Elasticsearch Servcie 跟 想使用 logstash kibana 所誕生的。

為何要使用 Aws Elasticsearch Service

免費 是最重要的原因,對於一個缺錢的新創或者是工程師,免費超吸引人的。 安裝快速,擴展方便也很重要,不過都比不過 免費

Aws Elasticsearch Service 的限制

首先免費有限制只能使用 t2.small ,然後基本上你是用不完 750 個小時的,因為一個月總時數不到 750 個小時。

Aws Elasticsearch Service 安裝注意事項

instance type

預設是 t2.large 記得換成免費的 t2.small

VPC or public access ?

如果你有 vpc 設定經驗的話或者你公司沒有固定 ip 可以選擇 vpc,不然的話建議選擇 public access,debug 比較簡單。

對外安全性上可以藉由 ip 來控制。

如果你需要對內安全性的話,我會建議你自己開 vps 裝 elasticsearch with x-pack plugin 或者使用 elastic could, 因為 aws elasticseach service 並不支援 x-pack

access policy

如果你使用 ip address 控制的話,要記住請設 public ip 而非 private ip。

Aws Elasticsearch Service 使用注意事項

logstash

endpoint 可以用 http:://{your_elasticsearch_service_end_point} 如果 https 不行可以試試

碰到 elastic 回傳 413 請降低 logstash.yml pipeline.batch.delay 跟 pipeline.batch.size 大小

filebeat

沒成功過,別問我了,接不上 logstash。

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