# Deprecation.logstash.codecs.plain

**URL:** <https://discuss.elastic.co/t/deprecation-logstash-codecs-plain/308005>\
**Category:** Logstash\
**Created:** [June 23, 2022, 12:19pm UTC](https://discuss.elastic.co/t/deprecation-logstash-codecs-plain/308005 "2022-06-23T12:19:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stevenpoot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevenpoot/32/107497_2.png) [@Stevenpoot](https://discuss.elastic.co/u/Stevenpoot)\
**Post date:** [June 23, 2022, 12:19pm UTC](https://discuss.elastic.co/t/deprecation-logstash-codecs-plain/308005/1 "2022-06-23T12:19:55Z")

</div>

How do I solve this. Logstash is working but the message is repeating all the time

[deprecation.logstash.codecs.plain] Relying on default value of pipeline.ecs\_compatibility, which may change in a future maj or release of Logstash. To avoid unexpected changes when upgrading Logstash, please explicitly declare your desired ECS Compatibility mode.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 23, 2022, 1:59pm UTC](https://discuss.elastic.co/t/deprecation-logstash-codecs-plain/308005/2 "2022-06-23T13:59:23Z")

</div>

You need to explicitly set the value for `pipeline.ecs_compatibility`.

> **To avoid unexpected changes when upgrading Logstash, please explicitly declare your desired ECS Compatibility mode.**

You can set it per pipeline in the `pipelines.yml` file or globally in the `logstash.yml` file.

Here is the [documentation](https://www.elastic.co/guide/en/logstash/8.2/ecs-ls.html#ecs-configuration-pipeline) on how to configure it.

---

<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 21, 2022, 1:59pm UTC](https://discuss.elastic.co/t/deprecation-logstash-codecs-plain/308005/3 "2022-07-21T13:59:33Z")

</div>

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