Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
filebeat
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段孔乐
filebeat
Commits
7fe02c05
Commit
7fe02c05
authored
Jul 01, 2021
by
段孔乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readme
parent
3f86fff3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
README.md
README.md
+30
-0
filebeat-quick-install.sh
filebeat-quick-install.sh
+1
-1
No files found.
README.md
View file @
7fe02c05
## 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
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.
...
...
filebeat-q
iu
ck-install.sh
→
filebeat-q
ui
ck-install.sh
View file @
7fe02c05
#!/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
...
...
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