openshift日誌管理---續

前文提到可以通過fluentd將日誌發給syslog server,而要使用該功能需要用到fluent-plugin-remote-syslog-1.1插件,如何確認你安裝的fluentd是否包含此插件呢,可按照如下方式操作。

用fluentd鏡像ose-logging-fluentd運行一個容器,

 docker run -it ose-logging-fluentd:latest /bin/bash

進入到容器後,切換至/opt/rh/rh-ruby25/root/usr/local/share/gems/gems目錄,列出該目錄下的文件即可看到下圖,如包含fluent-plugin-remote-syslog-1.1插件則說明你使用的fluentd鏡像是包含該插件的,即可直接使用。

fluentd鏡像下載地址見https://catalog.redhat.com/software/containers/openshift4/ose-logging-fluentd/5cd9744edd19c778293af093?container-tabs=dockerfile

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章