Skip to content

Conversation

@paizanmay
Copy link

完成系列文第二篇了!
文章請看 https://github.com/iCHEF/ichef.github.io/blob/Alvin_ELK_part2/_posts/2016-4-20-The%20Fashion%20Logging%20System%20--%20ELK%20-%20Part%202.md
請大家不吝鞭打~有說明不清楚了內容就留言吧!

}
]
}
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Resource": "arn:aws:es:ap-northeast-1:209570776318:domain/ichef/*"
改成
"Resource": "<AWS ARN>"
應該會比較好

@memorysaver
Copy link

lgtm !

首先我們會先講怎麼在 AWS 上開 ES 以及設定他,接著我們會講在 EC2 上安裝 Logstash 的步驟,最後會講怎麼樣從我們的 Logstash 送東西給 AWS 的 ES,並在 kibana 上看到那些資料

## 設定 AWS 的 Elasticsearch Service
首先盡到你的 AWS console,接著在所有服務的 Analytics 區塊裡可以看到 Elasticsearch Service,按下去之後你就會來到 ES 的 Dashboard 裡了!接著按 `Create a new domain` ,這個 domain 可以想像成是一個一個的 ES 資料庫,可以讓你來放跟不同類型的資料,進去創立 domain 的頁面後,先輸入你想要的 domain name,接著選擇符合你的使用量的 instance,接著設定 access policy,來決定這台 ES 可以讓誰 access,這邊我們為了方便,只設定兩個簡單的 rule,第一個是讓 Logstash 的 server 可以做 HTTP POST,這樣就可以新增資料,接著是讓所有人都可以對 ES 做 HTTP GET,讓大家都可以從 ES 裡獲取資訊,以下是 access policy範例:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

首先到你的 AWS console

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants