6.4.7 Cerebro configuration

cerebro安装请查看 6.4.2 安装,关键的配置文件:

  • /etc/cerebro/application.conf

另外还有个日志配置文件:

  • /etc/elasticsearch/log4j2.properties

编辑配置文件,填入连接的elasticsearch的地址以及用户信息, 修改完成后执行systemctl restart cerebro.service重启服务

# Secret will be used to sign session cookies, CSRF tokens and for other encryption utilities.
# It is highly recommended to change this value before running cerebro in production.
secret = "ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N"

# Application base path
basePath = "/"

# Defaults to RUNNING_PID at the root directory of the app.
# To avoid creating a PID file set this value to /dev/null
#pidfile.path = "/var/run/cerebro.pid"
pidfile.path=/dev/null

# Rest request history max size per user
rest.history.size = 50 // defaults to 50 if not specified

# Path of local database file
#data.path: "/var/lib/cerebro/cerebro.db"
data.path = "./cerebro.db"

es = {
  gzip = true
}

# Authentication
auth = {
}

# A list of known hosts
hosts = [
  {
    host = "http://10.40.58.152:9200"
    name = "Secured Cluster"
    auth = {
      username = "elastic"
      password = "lBJPQyPl0NBwGE6Cq8d0"
    }
  }
]

使用

最后更新于