create ES index every day

This commit is contained in:
Pim Kunis 2023-08-09 01:07:24 +02:00
parent 06c3fc56ab
commit 8d1fdc443b
3 changed files with 48 additions and 3 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,7 +11,12 @@
host maestro.dmz
port {{ elasticsearch_port }}
include_timestamp true
index_name fluentd.${tag}
index_name fluentd.${tag}.%Y%m%d
<buffer tag, time>
timekey 1d
flush_mode interval
flush_interval 1s
</buffer>
</match>
<system>