码迷,mamicode.com
首页 > 其他好文 > 详细

日志搜集平台ELK-cerebro部署安装

时间:2019-12-26 13:17:49      阅读:64      评论:0      收藏:0      [点我收藏+]

标签:settings   add   hang   active   null   max size   ret   ESS   data   

1、下载包

wget   https://github.com/lmenezes/cerebro/releases/download/v0.8.1/cerebro-0.8.1.tgz

2、安装

解压后文件放置路径

/home/jyapp/cerebro-0.8.1

3、修改配置文件,以上配置以生存环境10.50.194.138  ES机器为举例,注意我们的cerebro只需要部署在一台ES机器上即可,这里我们选择的是10.50.194.138

[root@i-5A02DBB8 conf]# cat application.conf
# 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"

 

# Authentication
auth = {
# Example of LDAP authentication
#type: ldap
#settings: {
#url = "ldap://host:port"
#base-dn = "ou=active,ou=Employee"
#method = "simple"
#user-domain = "domain.com"
#}
# Example of simple username/password authentication
type: basic
settings: {
username = "elastic"
password = "abc/123"
}
}

# A list of known hosts
hosts = [
#{
# host = "http://localhost:9200"
# name = "Some Cluster"
#},
# Example of host with authentication
{
host = "http://10.50.194.138:9200"

name = "cloud-ops"
auth = {
username = "elastic"
password = "abc/123"
}
}
]

 

4、启动服务

/home/jyapp/cerebro-0.8.1/bin/cerebro -Dhttp.port=8080 -Dhttp.address=10.50.194.138 &

 

5、我们现在使用的平台地址为

http://10.50.194.138:8080

用户名密码为

username = "elastic" 
password = "abc/123"

日志搜集平台ELK-cerebro部署安装

标签:settings   add   hang   active   null   max size   ret   ESS   data   

原文地址:https://www.cnblogs.com/litzhiai/p/12101177.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!