Logstash won't pass index from redis

女生的网名这么多〃 提交于 2019-12-12 04:34:30

问题


like in this question, I am trying to index some data to elasticsearch using redis and logstash. I'm positive I am writing the data coreectly to redis, and have successfully written to ES using a mock hardcoded index.

using the question linked above, I've tried the following output config:

output {

  elasticsearch {
     hosts => "localhost:9200"
     index => "${index}"
     type => "${type}"
  } 

}

whenindex is a field in my redis data. it seems the example I found uses type defined in logstash input stage and NOT passed with data. am I missing something?

来源:https://stackoverflow.com/questions/41531883/logstash-wont-pass-index-from-redis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!