[英]Disable logs "logstash.outputs.elasticsearch"
I want to disable the continuous warn messages being outputted in the logs as我想禁用在日志中输出的连续警告消息
[2022-09-20T20:28:54,604][WARN ][logstash.outputs.elasticsearch][main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :message=>"Got response code '401' contacting Elasticsearch at URL 'http://elasticsearch:9200/'"}
I read multiple posts and xpack.monitoring.enabled: false
seemed to have worked for people.我阅读了多篇文章,
xpack.monitoring.enabled: false
似乎对人们有用。 My logstash config is我的logstash配置是
http.host: "0.0.0.0"
path.config: /usr/share/logstash/pipeline
pipeline.ecs_compatibility: disabled
xpack.monitoring.enabled: false
But i still keep getting those warn messages.但我仍然不断收到那些警告信息。 Is there any way to get rid of them?
有没有办法摆脱它们?
xpack.monitoring.enabled
is only useful for shipping monitoring (but not logging.!) data to Elasticsearch. xpack.monitoring.enabled
仅用于将监控(但不记录)数据发送到 Elasticsearch。
You can update Logstash log levels either dynamically like this您可以像这样动态更新 Logstash 日志级别
curl -XPUT 'localhost:9600/_node/logging?pretty' -H 'Content-Type: application/json' -d'
{
"logger.logstash.outputs.elasticsearch" : "ERROR"
}
'
or directly in the log4j.properties file或直接在log4j.properties 文件中
logger.elasticsearchoutput.name = logstash.outputs.elasticsearch
logger.elasticsearchoutput.level = error
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.