1.加入一个job,使用syslog_aggregator template
2.声明一块持久化硬盘大小persistent_disk
3.确保syslog_aggregator job template 在nats job template之后运行,因为它会用到nats
4.增加global properties确保其他jobs发出rsyslog events到你的syslog_aggregator job
name: mydeployment
jobs:
- name: nats
...
- name: syslog
release: cf
template:
- syslog_aggregator
instances: 1
resource_pool: small
persistent_disk: 8192
networks:
- name: default
default:
- dns
- gateway
...
properties:
syslog_aggregator:
address: 0.syslog.default.mydeployment.microbosh
port: 54321