Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段孔乐
docker-elk
Commits
9634a42d
Commit
9634a42d
authored
May 13, 2021
by
段孔乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add filebeat and deploy doc
parent
a9f67726
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
ELK部署文档.md
ELK部署文档.md
+68
-0
filebeat.tgz
filebeat/filebeat.tgz
+0
-0
No files found.
ELK部署文档.md
0 → 100644
View file @
9634a42d
# Elastic stack (ELK) 部署说明
# Elastic stack (ELK) 部署说明
本项目基于github开源项目:https://github.com/deviantony/docker-elk
###测试环境
http://124.71.144.118:15601/app/discover
### 简介
Elasticsearch 用于数据存储
Logstash 用于数据处理
Kibana 用于数据的展示
Filebeat 负责数据采集
###安装
```
console
$
git clone https://gitlab.33.cn/dkl/docker-elk.git
```
###配置
检查docker-compose.yml 端口是否有冲突, java虚拟机内存(ES_JAVA_OPTS)是否足够
.env 中可配置ELK的版本,启动时会自动拉取对应版本的镜像
###启动
日志分开输出,kinaba日志会比较多,合在一起不利于分析。
```
console
$
docker-compose up elasticsearch
>
es.log 2>&1 &
$
docker-compose up kinaba
>
kinaba.log 2>&1 &
$
docker-compose up logstash
>
logstash.log 2>&1 &
```
### Filebeat 部署
拷贝filebeat.tgz到日志文件所在服务器,并解压
```
console
$
tar
-zxvf
filebeat.tgz
```
修改配置文件 filebeat.yml
```
yml
filebeat.inputs
:
-
type
:
log
paths
:
# **可匹配多级目录
-
'
/data/backend-micro/**/*.log'
exclude_files
:
[
'
stat.log$'
]
# 注意修改为logstash安装的地址。
output.logstash
:
hosts
:
[
"
127.0.0.1:15044"
]
```
启动。
```
console
$
./filebeat &
```
日志查看
```
console
$
tail
-100f
logs/filebeat
```
配置开机自启,并启动
```
console
$
sh install.sh
$
sh start.sh
```
\ No newline at end of file
filebeat/filebeat.tgz
0 → 100644
View file @
9634a42d
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment