logAnalyze
The DOK deployment process takes at least 5 minutes and will generate a lot of logs. For details, please refer to /tmp/dok.log
. In order to facilitate the troubleshooting of each node when the DOK cluster fails to be created, DOK provides commands for analyzing logs.
You can split dok logs into log files with IP as the unit through the following way.
dok logAnalyze --conf /tmp/dok-config.yaml --logFile /tmp/dok.log --resultDir /tmp/logAnalyze
To view the analysis results, see dok logAnalyze -h
for specific usage.
# tree /tmp/logAnalyze/
/tmp/logAnalyze/
├── dok-log-172.22.0.5.log
└── dok-log-172.22.1.62.log