在ES的日常运维中,cerebro 基本上是必不可少的工具。
如果ES没启用认证,则写法如下:
hosts = [
{
host = "http://192.168.31.181:9200"
name = "ELK"
}
]
如果启用了认证,但是没启用https,则写法如下:
hosts = [
{
host = "http://192.168.31.181:9200"
name = "ELK"
auth = {
username = "elastic"
password = "elasticAbcd"
}
}
]
如果启用了加密和ssl,则写法稍微复杂点,示例如下:
# A list of known hosts
hosts = [
{
host = "https://192.168.31.181:9200"
name = "ELK"
auth = {
username = "elastic"
password = "elasticAbcd"
}
}
]
play.ws.ssl.loose.acceptAnyCertificate=true
play.ws.ssl {
keyManager = {
stores = [
{
type = "PKCS12",
path = "/usr/local/cerebro-0.9.4/elastic-certificates.p12",
password = "123456"
}
]
}
}
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。