Hi @yaauie
I seem to be getting a similar issue with excessive log messages about ecs_compatibility
& 'target' option
after upgrading to the latest version of logstash (v8.1), specifically when using the http
plugin.
The log message I want to get rid of is:
[INFO] 2022-03-23 14:02:34.265 [[metrics]-pipeline-manager] json - 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)
I have narrowed it down to only be an issue with the http
input plugins which seems to be causing this excessive logging across all pipelines using this plugin.
I have tried setting ecs_compatibility: disabled
across all three levels (logstash.yml, pipelines.yml & individual plugins) but none seem to get rid of this log.
What confuses me is that when the pipeline starts, it tells me that the ecs_compatibility
mode is set to disabled, but yet, a few lines later, it still complains about it being enabled.
That is, I first get:
... Pipeline 'metrics' is configured with 'pipeline.ecs_compatibility: disabled' setting. All plugins in this pipeline will default to 'ecs_compatibility: disabled' ...
followed by:
[INFO] 2022-03-23 14:02:34.265 [[metrics]-pipeline-manager] json - 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)
Here is my pipeline config:
input {
# commented out other inputs to isolate the issue
http {
port => "8111"
type => http
}
}
filter {
# some code here, but it is commented out and still produces the log.
}
output {
pipeline {
send_to => ["rollup_process"]
}
}
pipelines.yml:
- pipeline.id metrics
path.config: "${UAM_HOME}/pipelines/metrics.cfg"
pipeline.workers: 1
pipeline.ecs_compatibility: disabled
Please advise what I could try, or perhaps this is a bug?