Commit c916aed7 authored by 段孔乐's avatar 段孔乐

add readme

parent 3f86fff3
## Install
### 1. quick install
Download quick install script
wget https://gitlab.33.cn/dkl/filebeat/raw/master/filebeat-quick-install.sh
Config logstash host and scan dir
vim filebeat-quick-install.sh
Run this script
sh 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
sh install.sh
# Welcome to Filebeat 7.12.0 # Welcome to Filebeat 7.12.0
Filebeat sends log files to Logstash or directly to Elasticsearch. Filebeat sends log files to Logstash or directly to Elasticsearch.
......
#!/bin/bash #!/bin/bash
logstash_host="124.71.144.118:15044" logstash_host="124.71.144.118:15044"
scan_dir="/data/backend-micro/**/*.log" scan_dir="/data/backend-micro/**/*.log"
dest=/usr/share/filebeat
src="https://gitlab.33.cn/dkl/filebeat/-/archive/1.0.0/filebeat-1.0.0.tar.gz" src="https://gitlab.33.cn/dkl/filebeat/-/archive/1.0.0/filebeat-1.0.0.tar.gz"
name=${src##*/} name=${src##*/}
folder=${name%.tar.gz} folder=${name%.tar.gz}
service=${folder%-*} service=${folder%-*}
version=${folder#*-} version=${folder#*-}
dest=/usr/share/filebeat
sudo systemctl stop filebeat.serivce 2>/dev/null sudo systemctl stop filebeat.serivce 2>/dev/null
mkdir -p $dest mkdir -p $dest
......
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