简体   繁体   English

Elasticsearch Marvel - 关闭日志记录

[英]Elasticsearch Marvel - Turn off logging

是否可以安装Elasticsearch Marvel并让它不收集任何数据,将模板更改为0分片,0重复为我做这些?

Just add this line to the config/elasticsearch.yml file to stop a node producing data: 只需将此行添加到config/elasticsearch.yml文件即可停止生成数据的节点:

marvel.agent.enabled: false

See the configuration docs for Marvel. 请参阅Marvel的配置文档

marvel.agent.interval: -1 

Then restart ElasticSearch. 然后重启ElasticSearch。 From the docs : 来自文档

marvel.agent.interval Controls how often data samples are collected. marvel.agent.interval控制收集数据样本的频率。 Defaults to 10s. 默认为10秒。 Set to -1 to temporarily disable data collection . 设置为-1可暂时禁用数据收集 You can update this setting through the Cluster Update Settings API. 您可以通过Cluster Update Settings API更新此设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM