#-------------ceph
[[instances]]
progs = "/opt/categraf/rules_mtail/ceph/ceph.mon.mtail"
logs = ["/var/log/ceph/ceph-mon.*.log"]
使用*匹配出:
2023/04/12 11:39:13 tail.go:288: Tailing /var/log/ceph/ceph-mon.0.log
2023/04/12 11:39:13 tail.go:288: Tailing /var/log/ceph/ceph-mon.admin.log
但我想排除ceph-mon.admin.log
使用\d报错:toml: line 24 (last key "instances.logs"): invalid escape in string '\d'