fix fluentd buffering
change ES index format to logstash format
This commit is contained in:
parent
8d1fdc443b
commit
8398975132
2 changed files with 4 additions and 8 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,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>
|
||||
|
|
Reference in a new issue