# Dependecy of logstash-filter-collate with old version of logstash-core-plugin-api

**URL:** <https://discuss.elastic.co/t/dependecy-of-logstash-filter-collate-with-old-version-of-logstash-core-plugin-api/69915>\
**Category:** Logstash\
**Created:** [December 23, 2016, 2:42pm UTC](https://discuss.elastic.co/t/dependecy-of-logstash-filter-collate-with-old-version-of-logstash-core-plugin-api/69915 "2016-12-23T14:42:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prebours](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@prebours](https://discuss.elastic.co/u/prebours)\
**Post date:** [December 23, 2016, 2:42pm UTC](https://discuss.elastic.co/t/dependecy-of-logstash-filter-collate-with-old-version-of-logstash-core-plugin-api/69915/1 "2016-12-23T14:42:25Z")

</div>

Installing logstash-filter-collate fails:  
logstash-plugin install --version 2.0.4 logstash-filter-collate

It seems that the plugin has a dependency on logstash-core-plugin-api (~\> 1.0) while I have the following gem installed:  
logstash-core-plugin-api (= 2.1.12)

The problem seems to be similar with another isssue ([Logstash-filter-prune gem dependencies](https://discuss.elastic.co/t/logstash-filter-prune-gem-dependencies/64136))

I would suggest to change the gemspec from:  
s.add\_runtime\_dependency "logstash-core-plugin-api", "~\> 1.0"  
to  
s.add\_runtime\_dependency 'logstash-core-plugin-api', '\>= 1.60', '\<= 2.99'

Is it the correct diagnostic?

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [December 23, 2016, 5:08pm UTC](https://discuss.elastic.co/t/dependecy-of-logstash-filter-collate-with-old-version-of-logstash-core-plugin-api/69915/2 "2016-12-23T17:08:07Z")

</div>

This plugin needs to be updated to the [new event api](https://www.elastic.co/guide/en/logstash/current/event-api.html), the transition is quite simple, do you want to create a PR and I'll review and merge?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 20, 2017, 5:08pm UTC](https://discuss.elastic.co/t/dependecy-of-logstash-filter-collate-with-old-version-of-logstash-core-plugin-api/69915/3 "2017-01-20T17:08:14Z")

</div>

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