【发布时间】:2017-03-15 16:22:09
【问题描述】:
我有一个 redis db、logstash 和两个 elasticsearch 一个 influxdb。 我正在将密钥从 redis 转移到 elasticsearch,它工作正常并且想要测试根本不起作用的 influxdb。
有没有人有效的 influxdb 连接器,或者我应该如何在 redis 中提供数据以使这个东西工作?
这是我的 influx-db 连接,它只会引发错误
influxdb {
host => "localhost"
measurement => "sensor1"
allow_time_override => true
use_event_fields_for_data_points => true
exclude_fields => ["@version", "@timestamp", "sequence", "type", "host"]
}
这是我的 redis 连接,工作正常
redis
{
host => "localhost"
data_type => "list"
key => "vortex"
threads => 4
type => "testrecord"
codec => "plain"
}
我试过这种行格式
"sensor1,measure=1 1489594615.9747" 作为 redis 的列表,例如
key: vortex
values:
sensor1,measure=1 1489594615.9747
sensor1,measure=1 1489594615.9747
sensor1,measure=1 1489594615.9747
sensor1,measure=1 1489594615.9747
sensor1,measure=1 1489594615.9747
....
但这也行不通。
有人知道如何通过logstash从redis获取数据到influxdb吗?
【问题讨论】: