# Unable to output into Elasticsearch

**URL:** https://discuss.elastic.co/t/unable-to-output-into-elasticsearch/317374
**Category:** Logstash
**Created:** [October 25, 2022, 7:30am UTC](https://discuss.elastic.co/t/unable-to-output-into-elasticsearch/317374 "2022-10-25T07:30:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Hawas\_Musthafa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hawas_musthafa/32/112486_2.png) [@Hawas\_Musthafa](https://discuss.elastic.co/u/Hawas_Musthafa)
#### Post date: [October 25, 2022, 7:30am UTC](https://discuss.elastic.co/t/unable-to-output-into-elasticsearch/317374/1 "2022-10-25T07:30:00Z")

</div>

Unable to output to the elasticseach.

output {  
elasticsearch {  
hosts =\> "elasticsearch:9200"  
user =\> "logstash\_internal"  
password =\> "${LOGSTASH\_INTERNAL\_PASSWORD}"  
index =\> "testmanagement-%{+yyyy.MM.dd}"  
}

and am also getting a message ,  
[2022-10-24T14:05:28,745][INFO][logstash.codecs.json][main][ad822dd49f9ebf6e60df0512fd95d9b1b9a4c4f27d620da03273beebbf7075b6] ECS compatibility is enabled but `target` option was not specified. This may cause fields to be set at the top-level of the event where they are likely to clash with the Elastic Common Schema. It is recommended to set the `target` option to avoid potential schema conflicts (if your data is ECS compliant or non-conflicting, feel free to ignore this message)

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [October 25, 2022, 4:15pm UTC](https://discuss.elastic.co/t/unable-to-output-into-elasticsearch/317374/2 "2022-10-25T16:15:47Z")

</div>

This is info message, something else is problem. However, you can temporally disable ecs\_compatibility in logstash.yml  
`pipeline.ecs_compatibility: disable`

---

<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: [November 22, 2022, 4:16pm UTC](https://discuss.elastic.co/t/unable-to-output-into-elasticsearch/317374/3 "2022-11-22T16:16:05Z")

</div>

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