在CentOS上分析Dolphin相關日志,需先明確Dolphin類型(文件管理器或Apache DolphinScheduler),再針對性操作:
Dolphin文件管理器
.local/share/dolphin/
,文件名為dolphin.log
。cat dolphin.log
:直接查看全部日志。less dolphin.log
:分頁查看。tail -f dolphin.log
:實時查看最新日志。grep
過濾關鍵字(如grep "error" dolphin.log
),或通過logwatch
生成日志報告。Apache DolphinScheduler
conf
目錄下通過logback-spring.xml
配置,通常存儲在logs/
目錄,包含dolphinscheduler-*.log
文件。journalctl
查看服務日志(若以systemd方式運行)。通用建議:定期清理日志(如用find
命令刪除3天前日志),避免磁盤占用;通過logrotate
設置日志輪轉規則。具體操作需根據實際安裝方式和版本調整。