Commit 96e30015 authored by 段孔乐's avatar 段孔乐

优化部署文档

parent 9376754d
## Install
# Filebeat 部署文档
### 1. quick install
Download quick install script
### 1. 快速安装
下载快速安装脚本
wget https://gitlab.33.cn/dkl/filebeat/raw/master/filebeat-quick-install.sh
chmod +x filebeat-quick-install.sh
Config logstash host and scan dir
#### 修改脚本,配置安装信息
vim filebeat-quick-install.sh
Run this script
# 参考:测试环境
logstash_host="124.71.144.118:15044"
scan_dir="/data/backend-micro/**/*.log"
env_name="test"
#### 执行脚本
bash filebeat-quick-install.sh
### 2. manual install
Download the installation package and decompress it
wget https://gitlab.33.cn/dkl/filebeat/-/archive/1.0.0/filebeat-1.0.0.tar.gz
tar -zxf filebeat-1.0.0.tar.gz
Config logstash host and scan dir
vim install.sh
Run install.sh
bash install.sh
## status
sudo systemctl status -l filebeat
#### 命令其他信息
# 查看运行状态
systemctl status -l filebeat
# 查看日志
tail -100 logs/filebeat
# Welcome to Filebeat 7.12.0
Filebeat sends log files to Logstash or directly to Elasticsearch.
## Getting Started
To get started with Filebeat, you need to set up Elasticsearch on
your localhost first. After that, start Filebeat with:
./filebeat -c filebeat.yml -e
This will start Filebeat and send the data to your Elasticsearch
instance. To load the dashboards for Filebeat into Kibana, run:
./filebeat setup -e
For further steps visit the
[Quick start](https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-installation-configuration.html) guide.
## Documentation
Visit [Elastic.co Docs](https://www.elastic.co/guide/en/beats/filebeat/7.x/index.html)
for the full Filebeat documentation.
## Release notes
#### [官网教程](https://www.elastic.co/guide/en/beats/filebeat/7.x/filebeat-installation-configuration.html)
https://www.elastic.co/guide/en/beats/libbeat/7.x/release-notes-7.12.0.html
#### [官方文档](https://www.elastic.co/guide/en/beats/filebeat/7.x/index.html)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment