部署輕量單機日誌查看工具zinc

通常日誌查看使用elk方案,但在箇人項目或小型項目中耗費資源過多,zinc提供瞭一種簡單方便的查看日誌方式。


zinc簡介:https://zincsearch-docs.zinc.dev/

github:https://github.com/zincsearch


安裝步驟:https://zincsearch-docs.zinc.dev/installation/

下載地址:https://github.com/zincsearch/zincsearch/releases


安裝日誌收集filebeat

註意事項:filebeat需要和zinc版本匹配,建議使用8.7版本

安裝步驟:https://www.elastic.co/guide/en/beats/filebeat/8.7/filebeat-installation-configuration.html


filebeat配置:https://zincsearch-docs.zinc.dev/ingestion/filebeat/


收集docker日誌配置:https://www.elastic.co/guide/en/beats/filebeat/8.7/filebeat-input-container.html

日誌一般在 /var/lib/docker/containers/*/*-json.log

文章分類