forked from saltstack-formulas/fluentbit-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example
35 lines (35 loc) · 848 Bytes
/
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
fluent_bit:
# possible options: td-agent-bit, fluent-bit
pkg: td-agent-bit
# optional for fluent-bit
service:
unit: '/lib/systemd/system/td-agent-bit.service'
conf: '/etc/td-agent-bit/td-agent-bit.conf'
config:
flush: 5
daemon: 'Off'
# Optional log file
log_file: /var/log/td-agent-bit/td-agent-bit.log
log_level: debug
http_monitor: on
http_port: 2020
inputs:
- Name: cpu:
Tag: my_cpu
- Name: tail
Tag: syslog
Path: /var/log/syslog
Path_Key: filename
DB: /var/run/fluent-bit/syslog
filters:
- Name: grep
Match: syslog
Regex: Error
outputs:
- Name: forward
Match: syslog
Host: fluentd.example.com
Port: 12345
- Name: influxdb
Match: my_cpu
Host: influx.example.com