teoyaomiqui | 5f07430 | 2017-04-11 15:03:55 +0300 | [diff] [blame] | 1 | applications: |
2 | - rsyslog | ||||
3 | classes: | ||||
4 | - service.rsyslog.support | ||||
5 | parameters: | ||||
6 | _param: | ||||
7 | rsyslog_port: 10514 | ||||
8 | rsyslog: | ||||
9 | server: | ||||
10 | enabled: true | ||||
11 | module: | ||||
12 | imtcp: {} | ||||
13 | template: | ||||
14 | RemoteStorage: | ||||
15 | parameter: | ||||
16 | type: string | ||||
17 | string: /var/log/%HOSTNAME%/%programname%.log | ||||
18 | ruleset: | ||||
19 | RemoteLogs: | ||||
20 | description: action(type="omfile" dynaFile="RemoteStorage") | ||||
21 | input: | ||||
22 | imtcp: | ||||
23 | port: ${_param:rsyslog_port} | ||||
24 | ruleset: RemoteLogs |