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
|
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'
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue