我如何在 logstash-elasticsearch 过滤器插件中使用聚合

how can i use aggregation in logstash-elasticsearch filter plugin

if[type] == "mytype"    {       elasticsearch       {
                hosts => ["192.168.1.1:9200"]
                index => "my_index"
                query_template => "/logstash/my_query.json"
                 aggregation_fields => 
                 {
                 "seqnumber" => "find_seqnumber"
                 }
          }
    }

为什么 return 我会出现这个错误?? ::

Unknown setting 'aggregation_fields' for elasticsearch

在 logstash 日志中

答案在这里 link :

elasticsearch过滤器插件版本解决的问题

https://discuss.elastic.co/t/how-can-i-use-aggregation-in-logstash-elasticsearch-filter-plugin/133805/5