问题
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