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"
                     }
              }
        }

why return this error for me ?? ::

Unknown setting 'aggregation_fields' for elasticsearch

in logstash log

This is weird. What version of LS? What version of the elasticsearch filter?

bin/logstash-plugin list --verbose --group filter

both are 6.1

This is the kind of output the bin/logstash-plugin list command prints logstash-filter-elasticsearch (3.3.0)

aggregation_fields was only added recently in v3.3.0. You should be able to upgrade to that version.
See this list. https://www.elastic.co/guide/en/logstash-versioned-plugins/current/filter-elasticsearch-index.html

thank you .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.