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

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"

posted @   大川哥  阅读(385)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示