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

View file

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