lab*_*nth 7 plugins elasticsearch fluentd
我正在设置我的fluentD配置,对于某些事件,我需要将它们推送到loggly和elasticsearch.我正在使用复制插件,但看到fluentD调用返回所花费的时间差异很大 - 通过邮递员进行测试POST调用所花费的时间.如果我使用弹性搜索匹配内部副本vs <1s进行直接弹性搜索匹配,则需要大约5秒.我使用以下配置.
<match testapp.elastic>
@type elasticsearch
host localhost
port 9200
index_name fluentdtest
type_name fluentdtest
</match>
#Common match for loggly and mongo
<match logapp.**>
type copy
<store>
@type elasticsearch
host localhost
port 9200
index_name fluentdtest
type_name fluentdtest
</store>
<store>
type forest
subtype loggly
<template>
loggly_url ##myurl##/tag/${tag}
</template>
</store>
</match>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
115 次 |
| 最近记录: |