Commit 09ee7d39 authored by 段孔乐's avatar 段孔乐

modify install script

parent b9c08346
......@@ -28,6 +28,11 @@ Run install.sh
bash install.sh
## status
sudo systemctl status -l filebeat
tail -100 logs/filebeat
# Welcome to Filebeat 7.12.0
Filebeat sends log files to Logstash or directly to Elasticsearch.
......
#!/bin/bash
#logstash_host="124.71.144.118:15044"
#logstash_host="127.0.0.1:15044"
#scan_dir="/data/backend-micro/**/*.log"
dest=$(cd ~ && pwd)
......
#!/bin/bash
# logstash_host="124.71.144.118:15044"
# logstash_host="127.0.0.1:15044"
# scan_dir="/data/backend-micro/**/*.log"
serviceName="filebeat"
......@@ -11,6 +11,6 @@ sudo systemctl stop filebeat.serivce 2>/dev/null
sudo systemctl start ${serviceName}.service
green "filebeat install success"
green "============================================="
green "systemctl status -l filebeat # to see status"
green "tail -50f $(pwd)/logs/filebeat # to see log"
blue "systemctl status -l filebeat #to see status"
blue "tail -50f $(pwd)/logs/filebeat #to see log"
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