首页
Search
1
v2ray异常错误之二
3,310 阅读
2
linux时区设置
2,698 阅读
3
DB2常用操作
2,173 阅读
4
websphere修改jvm内存xmx和xms
1,929 阅读
5
nfs客户端文件属主为nobody的现象
1,552 阅读
技术
生活
运动
游戏
电影
登录
Search
标签搜索
docker
linux
troubleshooting
nginx
secure
truenas
mysql
windows
python
esxi
docker swarm
oracle
zabbix
tomcat
blog
dsm
群晖
rpa
freenas
db
yuc
累计撰写
291
篇文章
累计收到
0
条评论
首页
栏目
技术
生活
运动
游戏
电影
页面
搜索到
2
篇与
的结果
2024-05-07
logstash安装以及启动
精简配置 日志输出可以是多种的,比如输出到文件或者控制台,输出到控制台有利于调试 输出到控制台 output { stdout { codec => "rubydebug" } } 输出到文件 output { file { path => "/tmp/nginx.log" } } 启动命令 ./bin/logstash -f config/nginx.conf -r # 需要放入后台,-r 能再配置文件更新时自动重载,不需要每次重启 docker启动 20241111,这次使用 docker swarm 来运行 logstash,并且在版本是 8.15.3 的情况下,大概需要做如下配置: 创建持久话配置的目录 config 、pipline 配置 config/logstash.yml 文件 http.host: "0.0.0.0" xpack.monitoring.elasticsearch.hosts: [ "https://192.168.10.120:9200","https://192.168.10.121:9200","https://192.168.10.122:9200" ] xpack.monitoring.elasticsearch.username: "elastic" xpack.monitoring.elasticsearch.password: "jdCMnvR9QjDxkHqdH4BG" xpack.monitoring.elasticsearch.ssl.verification_mode: "none" pipeline.batch.size: 1000 pipeline.batch.delay: 5 pipeline.workers: 4 queue.type: persisted queue.max_events: 1_000_000 queue.max_bytes: 1gb config.reload.automatic: true config.reload.interval: 10s 有几个重点: 忽略证书的错误,否则无法连接 elasticsearch 优化推送的队列,缓存等 配置更新自动重载,避免每次都要重新创建容器,重新下载地图资源很慢 配置 pipline/logstash.conf 文件 启动服务 docker service create --name logstash \ --mount type=bind,src=/docker/others/logstash/pipeline/,dst=/usr/share/logstash/pipeline/ \ --mount type=bind,src=/docker/others/logstash/config/logstash.yml,dst=/usr/share/logstash/config/logstash.yml \ --network mynets \ --replicas 1 \ harbor.xxx.com/sz/logstash:8.15.3
2024年05月07日
5 阅读
0 评论
0 点赞
2024-05-07
elfk之docker安装kibana
docker启动 docker service create --name kibana --replicas 1 --network mynets -p 5601:5601 -e "ELASTICSEARCH_HOSTS=http://192.168.10.15:9200" --mount type=bind,src=/docker/others/kibana/kibana.yml,dst=/usr/share/kibana/config/kibana.yml --constraint 'node.role == maanager' kibana:7.13.3 挂载的配置文件: server.port: 5601 server.host: "0.0.0.0" elasticsearch.hosts: ["http://192.168.10.15:9200"] kibana.index: ".kibana_x" #kibana.defaultAppId: "home" elasticsearch.username: "kibana_system" elasticsearch.password: "Thisiselastic@2021" i18n.locale: "zh-CN" docker swarm启动 20241111使用docker swarm安装部署 docker service create --name kibana --network mynets -p 5601:5601 --mount type=bind,src=/docker/others/kibana/config/kibana.yml,dst=/usr/share/kibana/config/kibana.yml --replicas 1 harbor.succez.com/sz/kibana:8.15.3 配置文件内容如下: server.port: 5601 server.host: "0.0.0.0" elasticsearch.hosts: [ "https://192.168.10.120:9200","https://192.168.10.121:9200","https://192.168.10.122:9200" ] elasticsearch.ssl.verificationMode: "none" elasticsearch.username: "kibana" elasticsearch.password: "Ky_VVebx+lrmjoGh0zbU" #kibana.defaultAppId: "home" #i18n.locale: "zh-CN"
2024年05月07日
6 阅读
0 评论
0 点赞