# \--config.test\_and\_exit validation fails on certain valid output plugin settings

**URL:** <https://discuss.elastic.co/t/config-test-and-exit-validation-fails-on-certain-valid-output-plugin-settings/62204>\
**Category:** Logstash\
**Created:** [October 4, 2016, 6:11pm UTC](https://discuss.elastic.co/t/config-test-and-exit-validation-fails-on-certain-valid-output-plugin-settings/62204 "2016-10-04T18:11:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarini\_Dash](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@Tarini\_Dash](https://discuss.elastic.co/u/Tarini_Dash)\
**Post date:** [October 4, 2016, 6:11pm UTC](https://discuss.elastic.co/t/config-test-and-exit-validation-fails-on-certain-valid-output-plugin-settings/62204/1 "2016-10-04T18:11:09Z")

</div>

Product - logstash-5.0.0-beta1

Checked in Gemfile that logstash-input-kafka plugin is available.

my logstash-pipeline.conf has below output config.

* * *

## output { elasticsearch { hosts =\> ["x.x.x.x:9200","y.y.y.y:9200"] workers =\> 3 } }

when I run bin/logstash -f logstash-pipeline.conf --config.test\_and\_exit , I get the following error.

_[2016-10-04T13:59:45,652][FATAL][logstash.runner] The given configuration is invalid. Reason: You are using a plugin that doesn't support workers but have set the workers value explicitly! This plugin uses the shared and doesn't need this option_

As per [https://www.elastic.co/guide/en/logstash/master/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-workers](https://www.elastic.co/guide/en/logstash/master/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-workers) , **workers** is a valid setting.

Workaround : remove the workers setting from the pipeline config file.

Thank you

---

<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:** [July 6, 2017, 4:35am UTC](https://discuss.elastic.co/t/config-test-and-exit-validation-fails-on-certain-valid-output-plugin-settings/62204/2 "2017-07-06T04:35:51Z")

</div>


