This commit is contained in:
2022-04-18 11:21:20 +08:00
commit 45a7af638f
210 changed files with 8997 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# 部署 logstash6
- 为域名 x1.xx.com 和 x2.xx.com 申请 ssl 证书,并在每月的 31 号晚上十一点更新一次
- 根据实际环境修改
- docker-compose.yml
- 创建目录
```
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
```
- 启动
```
docker-compose up -d
```
- 创建定时任务
```
0 23 31 * * docker-compose -f /compose/docker-compose.yml up -d letsencrypt
```

View File

@@ -0,0 +1,23 @@
version: "3.7"
services:
logstash:
image: harbor.colben.cn/general/logstash:6
container_name: logstash
restart: "on-failure"
stop_grace_period: 2m
network_mode: host
volumes:
- type: bind
source: ./es/config
target: /opt/es/config
- type: bind
source: ./es/data
target: /opt/es/data
- type: bind
source: ./es/logs
target: /opt/es/logs
- type: bind
source: ./es/offline-plugins
target: /opt/es/offline-plugins