Merge "Add fluent config for letsencrypt"
This commit is contained in:
commit
04e1446bf5
@ -112,6 +112,8 @@
|
||||
enabled: "{{ enable_prometheus_fluentd_integration | bool }}"
|
||||
- name: "conf/input/10-openvswitch.conf.j2"
|
||||
enabled: true
|
||||
- name: "conf/input/11-letsencrypt.conf.j2"
|
||||
enabled: "{{ enable_letsencrypt | bool }}"
|
||||
customised_input_files: "{{ find_custom_fluentd_inputs.files | map(attribute='path') | list }}"
|
||||
# Filters
|
||||
fluentd_filter_files: "{{ default_filter_files | customise_fluentd(customised_filter_files) }}"
|
||||
|
@ -0,0 +1,15 @@
|
||||
<source>
|
||||
@type tail
|
||||
@log_level debug
|
||||
path /var/log/kolla/letsencrypt/letsencrypt-lego.log
|
||||
pos_file /var/run/td-agent/letsencrypt.pos
|
||||
tag infra.letsencrypt.lego
|
||||
enable_watch_timer false
|
||||
<parse>
|
||||
@type multiline
|
||||
format_firstline /^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}/
|
||||
format1 /^(?<Timestamp>\d{4}\/\d{2}\/\d{2} \d{2}:\d{2}:\d{2}) \[(?<log_level>\S+)\] (?<Payload>.*)/
|
||||
time_key Timestamp
|
||||
time_format %Y/%m/%d %H:%M:%S
|
||||
</parse>
|
||||
</source>
|
Loading…
x
Reference in New Issue
Block a user