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

Merge branch 'test' into 'master'

modify install script See merge request !2
parents 63b864eb 09ee7d39
...@@ -28,6 +28,11 @@ Run install.sh ...@@ -28,6 +28,11 @@ Run install.sh
bash install.sh bash install.sh
## status
sudo systemctl status -l filebeat
tail -100 logs/filebeat
# 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="127.0.0.1:15044"
#scan_dir="/data/backend-micro/**/*.log" #scan_dir="/data/backend-micro/**/*.log"
dest=$(cd ~ && pwd) dest=$(cd ~ && pwd)
......
#!/bin/bash #!/bin/bash
# logstash_host="124.71.144.118:15044" # logstash_host="127.0.0.1:15044"
# scan_dir="/data/backend-micro/**/*.log" # scan_dir="/data/backend-micro/**/*.log"
serviceName="filebeat" serviceName="filebeat"
...@@ -11,6 +11,6 @@ sudo systemctl stop filebeat.serivce 2>/dev/null ...@@ -11,6 +11,6 @@ sudo systemctl stop filebeat.serivce 2>/dev/null
sudo systemctl start ${serviceName}.service sudo systemctl start ${serviceName}.service
green "filebeat install success" green "filebeat install success"
green "=============================================" green "============================================="
green "systemctl status -l filebeat # to see status" blue "systemctl status -l filebeat #to see status"
green "tail -50f $(pwd)/logs/filebeat # to see log" blue "tail -50f $(pwd)/logs/filebeat #to see log"
green "=============================================" green "============================================="
\ No newline at end of file
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