随笔分类 -  日志处理

摘要:https://wiki.eryajf.net/pages/0322lius/#_3-%E5%B0%8F%E7%BB%93 阅读全文
posted @ 2022-07-15 08:48 明天OoO你好 阅读(388) 评论(0) 推荐(0) 编辑
摘要:需要分别配置logrotate和supervisor 1. 配置logrotate [root@node1 logrotate.d]# cat /etc/logrotate.d/netqps /root/netqps/files/*log { #指定要切割日志的路径,并指定日志结尾,便于匹配 rot 阅读全文
posted @ 2022-02-23 10:47 明天OoO你好 阅读(1099) 评论(0) 推荐(0) 编辑
摘要:1. ansible通过通配符从多个远端服务器fetch日志文件[root@localhost data]# cat ../playbook/fetch.yml - hosts: all tasks: - name: find_file find: paths: /root/netqps/files 阅读全文
posted @ 2022-02-23 10:10 明天OoO你好 阅读(2873) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示