FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Shell/small_python_script/install_filebeat.sh at master · andaok/Shell · GitHub
andaok
/
Shell
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Shell
/
small_python_script
/
install_filebeat.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (23 loc) · 1.01 KB
Breadcrumbs
Shell
/
small_python_script
/
install_filebeat.sh
Copy path
File metadata and controls
32 lines (23 loc) · 1.01 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!
/usr/bin/bash
#
write by weiye in 20180208
#
-------------------
#
#
Standardized installation of filebeat
#
#
-------------------
filebeat_root_dir=
"
/opt/platform
"
filebeat_install_home=
"
${filebeat_root_dir}
/filebeat
"
filebeat_conf_path=
"
${filebeat_install_home}
/conf
"
filebeat_startup_script=
"
${filebeat_install_home}
/start.sh
"
filebeat_stop_script=
"
${filebeat_install_home}
/stop.sh
"
if
[
-d
${filebeat_install_home}
]
;
then
echo
"
${filebeat_install_home}
already exists,install quit!
"
exit
1
fi
mkdir -p
${filebeat_root_dir}
&&
cd
${filebeat_root_dir}
wget -q http://job.quark.com/download/elk/filebeat-5.5.1-linux-x86_64.tar.gz
tar zxf filebeat-5.5.1-linux-x86_64.tar.gz
mv filebeat-5.5.1-linux-x86_64 filebeat
&&
mkdir filebeat/conf
touch
${filebeat_startup_script}
&&
echo
"
#!/bin/bash
"
>>
${filebeat_startup_script}
&&
chmod +x
${filebeat_startup_script}
touch
${filebeat_stop_script}
&&
echo
-e
'
#!/bin/bash \npkill -f "filebeat -c"
'
>>
${filebeat_stop_script}
&&
chmod +x
${filebeat_stop_script}
exit
0
Back
|
FazBrowse Home
|
New Git URL