fix fluentd buffering

change ES index format to logstash format
This commit is contained in:
Pim Kunis 2023-08-09 11:04:15 +02:00
parent 8d1fdc443b
commit 8398975132
2 changed files with 4 additions and 8 deletions

View file

@ -7,7 +7,7 @@ datasources:
access: proxy access: proxy
url: http://maestro.dmz:{{ elasticsearch_port }} url: http://maestro.dmz:{{ elasticsearch_port }}
jsonData: jsonData:
index: 'fluentd.cpu.*' index: 'fluentd.cpu-*'
timeField: '@timestamp' timeField: '@timestamp'
- name: memory - name: memory
@ -15,5 +15,5 @@ datasources:
access: proxy access: proxy
url: http://maestro.dmz:{{ elasticsearch_port }} url: http://maestro.dmz:{{ elasticsearch_port }}
jsonData: jsonData:
index: 'fluentd.memory.*' index: 'fluentd.memory-*'
timeField: '@timestamp' timeField: '@timestamp'

View file

@ -11,12 +11,8 @@
host maestro.dmz host maestro.dmz
port {{ elasticsearch_port }} port {{ elasticsearch_port }}
include_timestamp true include_timestamp true
index_name fluentd.${tag}.%Y%m%d logstash_format true
<buffer tag, time> logstash_prefix fluentd.${tag}
timekey 1d
flush_mode interval
flush_interval 1s
</buffer>
</match> </match>
<system> <system>