GrayLog Server-filebeat正規表示式(五)

Genio世界觀
Nov 7 · 4 min read

在此說明要用到正規表示式的時機,是因為發現每一個AP Log 送至Graylog 時,若遇到換行時,會有上下內容不匹配的情況,故我在此於filebeat的設定加上正規表示式,將log上下有關連的log都整合在一起,已利於方便查詢問題,此部分拿JAVA Exception為例:

(1)當有JAVA Exception時,會把Excpetion拆成每一行log而塞進GrayLog,這樣很容易無法查詢真正的Excetion問題。

(2)故前往Graylog首頁,並點選System功能列表後,選擇Sidecars,到Sidecars Overview頁面後,選擇Configuration設定。

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Genio世界觀

Written by

IT之人生好難

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade