-
Notifications
You must be signed in to change notification settings - Fork 0
Alvin elk log system part 1 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
英文和中文之間,留一個空格會比較好閱讀,例如小結中的: |
|
我的堅持一是英文的頭尾都應該要有空格 XD |
|
結果跟 @memorysaver 同時講了一樣的事XD |
| 在做雲端服務的時候,有一個非常重要的環節,那就是logging system!! | ||
| 因為沒有logging system來幫你蒐集log並讓你容易search的話,先不論發生bug的時候不知道要從哪邊開始找起,就連伺服器掛掉狂噴error的時候,有可能客戶都會比你早發現,到時候就... | ||
| 在威脅完大家logging system的重要性之後,這系列文章主要會分成以下三個部分去說明,讓大家對於 ELK這套logging system有大致上的了解,並且可以架設出 ELK: | ||
| 1. ***什麼是 ELk ?*** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K 大寫
|
哭哭英文只有頭加到空格,要慢慢修了.... |
|
|
||
| ## 小結 | ||
| Part 1的文章大概介紹了 ELK的概念,希望大家不要得了名詞恐懼症!其實 ELK就是讓你可以從各個 server裡將 log吐到 logstash,接著從 logstash送到 Elasticsearch,最後從 Kibana裡去分析 log,重點就是讓傳統上分散在各個 server裡的 log,能夠處理後集中觀看,對於現在越來越大的雲端架構,以及越來越多的服務,能夠更容易地找出問題點在哪裡! | ||
| 我相信大家對於實際上要怎麼安裝環境,以及怎麼去把這三個東西接在一起會有疑問,這個部分就讓我們在接下來的系列文章裡繼續看下去~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
,以及 -> 以及
|
第一篇就被鞭的蠻厲害的 lol |
|
因為這個人人都看得懂啊,所以人人皆可鞭 |
|
哭哭下次用全英文寫好了 讓可以鞭打的人數瞬間下降! |
|
You sure you can decrease the number of reviewers if you wrote in English? |
|
By the way, I will create a new private repository for the blog and then we could review these draft internally. It's easy to migrate posts in a Jekyll site (since they're just markdown files). |
| 在做雲端服務的時候,有一個非常重要的環節,那就是 logging system!! | ||
| 因為沒有 logging system 來幫你蒐集 log 並讓你容易 search 的話,先不論發生 bug 的時候不知道要從哪邊開始找起,就連伺服器掛掉狂噴 error 的時候,有可能客戶都會比你早發現,到時候就... | ||
| 在威脅完大家 logging system 的重要性之後,這系列文章主要會分成以下三個部分去說明,讓大家對於 ELK 這套 logging system 有大致上的了解,並且可以架設出 ELK: | ||
| 1. ***什麼是 ELK ?*** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space line above to make markdown compiler create an ordered list. (Check the preview)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree , you can do this way
- 什麼是 ELK ?
- 用 EC2 架設 Logstash,並搭配 AWS 提供的 Elasticsearch 與 Kibana 來架構 ELK
- 將 Nginx 的 Log 藉由 Logstash 送往 AWS Elasticsearch,並用 Kibana 來監測 HTTP Status
this is more better than before
> 1. 什麼是 ELK ?
> 2. 用 EC2 架設 Logstash,並搭配 AWS 提供的 Elasticsearch 與 Kibana 來架構 ELK
> 3. 將 Nginx 的 Log 藉由 Logstash 送往 AWS Elasticsearch,並用 Kibana 來監測 HTTP Status
Additional, you can also add highlight link, let user quick move to the topic what they want
|
聽說你要發第二篇 放你一馬好了 lgtm 在集滿一個星星就可以發了 |
|
Elasticsearch、Logstash、Kibana三段的標題裡面稍微講一下這三個玩意是做啥用的會更好理解吧?(對於只看標題的標題黨來說.....) |
| 2. 用 EC2 架設 Logstash,並搭配 AWS 提供的 Elasticsearch 與 Kibana 來架構 ELK | ||
| 3. 將 Nginx 的 Log 藉由 Logstash 送往 AWS Elasticsearch,並用 Kibana 來監測 HTTP Status | ||
|
|
||
| 而本篇文章將針對 ***什麼是 ELK ?*** 來開始講起 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
句點
| Table | Type | ||
| Document | Row | ||
| 你要放到 ES 的資料就叫做 document,它可以是非結構化的一篇文章,這樣還是可以用關鍵字來搜尋到你想要的東西,不過使用在 logging system 上的話你還是會想要放像是 JSON 這種結構化的資料,這樣不僅閱讀更容易,在搜尋的時候也可以用 ES 提供的一些方法,來讓我們使用像是 NOSQL 的搜尋方式來查 document,例如去查 JSON 裡的 count 這個欄位要大於5的資料,這種方式可以更方便我們找到想要的 log,而 ES 也提供了一種很棒棒的 search 語法,叫做 [DSL],不只可以 filter,更可以做到 aggregations 呢! | ||
| 談完這麼強大的 search engine,我知道各位一定很想趕快知道怎麼塞資料進去,跟在哪裡做搜尋呢?這個時候我們就要來談 RESTful 了!ES 不只搜尋功能強大,更是好棒棒的直接提供你 REST API 來做寫入 data 跟 search data 的功能啊,如果你想要 insert data 到某個 index 的某個 type 裡只要像下面這樣 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果你想要 insert data 到某個 index 的某個 type 裡只要像下面這樣":"
|
�話又說回來,我們的作者檔建立好了嗎? |
|
OK |
這篇文章主要是介紹ELK是什麼?是系列文章的part 1
接下來還會有兩篇在講怎麼安裝環境,以及實際上怎麼使用將nginx的log送到Elasticsearch裡
文章請看:https://github.com/iCHEF/ichef.github.io/blob/Alvin_ELK_Log_system/_posts/2016-4-20-The%20Fashion%20Logging%20System%20--%20ELK%20-%20Part%201.md