Unable to output into Elasticsearch

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)

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

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