https://github.com/OPN48/pyLogmanage
1.部署
cd {your log path}
git clone --recursive https://github.com/OPN48/pyLogmanage.git && mv ./pyLogmanage/* ./ && mv ./pyLogmanage/.git ./.git && mv ./pyLogmanage/.gitignore ./.gitignore && rm -rf ./pyLogmanage
2.定时切割
cd /home/log && python3 logdatatar.py
3.定时上报
cd /home/log && python3 listener.py
4.发送到钉钉
python3 setup.py -url https://oapi.dingtalk.com/robo...
网友评论