logstash发送数据给ElasticSearch,自定义索引(填坑)

output {
  elasticsearch {
    hosts => ["127.0.0.1:9200"]
    index => "log-xxxx-%{+YYYY.MM.dd}"
  }
}

注意index里面不能存在大写字符json

又被坑了.elasticsearch

相关文章
相关标签/搜索