摘要: 命令样例如下: curl -X GET "https://localhost:9200/_cat/component_templates?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+ 阅读全文
posted @ 2023-11-23 21:22 jackieathome 阅读(32) 评论(0) 推荐(0)
摘要: curl -X GET "https://localhost:9200/_cat/ml/anomaly_detectors?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7 阅读全文
posted @ 2023-11-23 21:14 jackieathome 阅读(22) 评论(0) 推荐(0)
摘要: 查看各节点上各个shard的硬件使用情况,命令样例如下: curl -X GET "https://localhost:9200/_cat/allocation?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic 阅读全文
posted @ 2023-11-23 01:52 jackieathome 阅读(83) 评论(0) 推荐(0)
摘要: ElasticSearch之系统关键配置 集群名称 在配置文件$ES_HOME/config/elasticsearch.yml中指定,样例如下: cluster: name: logging-prod 或者 cluster.name: logging-prod 节点的名称 在配置文件$ES_HOM 阅读全文
posted @ 2023-11-23 01:40 jackieathome 阅读(110) 评论(0) 推荐(0)
摘要: 查看当前集群中各节点的信息,执行如下命令: curl -X GET "https://localhost:9200/_nodes?pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9" 阅读全文
posted @ 2023-11-23 00:55 jackieathome 阅读(79) 评论(0) 推荐(0)
摘要: 查看当前集群全部健康指标的信息,执行如下命令: curl -X GET "https://localhost:9200/_health_report?pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s 阅读全文
posted @ 2023-11-23 00:24 jackieathome 阅读(52) 评论(0) 推荐(0)
摘要: 执行aliases命令,如下: curl -X GET "https://localhost:9200/_cat/aliases?pretty&v=true" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=* 阅读全文
posted @ 2023-11-23 00:08 jackieathome 阅读(78) 评论(0) 推荐(0)
摘要: ElasticSearch默认情况下使用Log4j2来记录日志,日志配置文件的路径为$ES_HOME/config/log4j2.properties,配置方法见Log4j2的官方文档。 参考path-settings,通过指定path.logs,可以指定日志文件的保存路径。 在日志配置文件$ES_ 阅读全文
posted @ 2023-11-22 23:53 jackieathome 阅读(319) 评论(0) 推荐(0)
摘要: 参考Cluster health API。 命令样例,如下: curl -X GET "https://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=50s&pretty" --cacert $ES_HOME/config 阅读全文
posted @ 2023-11-22 01:42 jackieathome 阅读(73) 评论(0) 推荐(0)
摘要: 参考Cluster get settings API。 命令样例,不指定参数,如下: curl -X GET "https://localhost:9200/_cluster/settings?pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u 阅读全文
posted @ 2023-11-22 01:33 jackieathome 阅读(548) 评论(0) 推荐(0)