This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
pillar.example
62 lines (62 loc) · 1.67 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
fluentd:
overrides:
ssl:
cert_params:
CN: fluentd.example.com
bits: 4096
cert:
fluentd_cert:
content: |
-----BEGIN CERTIFICATE-----
(Your Primary SSL certificate: www.example.com.crt)
-----END CERTIFICATE-----
path: '/etc/fluent/fluentd.crt'
fluentd_key:
content: |
-----BEGIN RSA PRIVATE KEY-----
(Your Private Key: www.example.com.key)
-----END RSA PRIVATE KEY-----
path: '/etc/fluentd/flunetd.key'
pki:
ca_chain:
content: |
-----BEGIN CERTIFICATE-----
(Your PKI cert chain)
-----END CERTIFICATE-----
path: '/usr/local/share/ca-certificates/ca_chain.crt'
plugins:
- fluent-plugin-elasticsearch
- fluent-plugin-postgres
proxied_plugins:
- route: mailgun-webhooks
port: 9001
token: testtoken
plugin_dependencies:
{% if grains['os_family'] == 'Debian' %}
- libpq-dev
{% elif grains['os_family'] == 'RedHat' %}
- libpqxx-devel
{% endif %}
configs:
- name: elasticsearch
settings:
- directive: source
attrs:
- '@type': syslog
- port: 514
- tag: syslog
- directive: match
directive_arg: 'syslog.*'
attrs:
- '@type': copy
- nested_directives:
- directive: store
attrs:
- '@type': stdout
- directive: store
attrs:
- '@type': elasticsearch
- logstash_format: true
- flush_interval: 10s
- host: localhost
- port: 9200