create ES index every day
This commit is contained in:
parent
06c3fc56ab
commit
8d1fdc443b
3 changed files with 48 additions and 3 deletions
|
@ -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'
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue