This commit is contained in:
2023-04-16 21:38:32 +08:00
parent a0849e40ef
commit 0b6c876a0f
59 changed files with 1026 additions and 189 deletions

View File

@@ -39,7 +39,7 @@ function Usage {
function RestoreConf {
if [ -z "$(ls config/)" ]; then
Print Restore default config files and quit ...
Print Restoring default config files and quit ...
tar zxf config.tgz
GOT_SIGTERM=1
exit 0
@@ -48,20 +48,21 @@ function RestoreConf {
function InstallPlugin {
for f in $(ls -d offline-plugins/*.zip 2>/dev/null); do
Print Install plugins from offline file: $f ...
Print Installing plugins from offline file: $f ...
./bin/logstash-plugin install file://$f
mv $f $f.installed
done
}
function StartProc {
Print Start logstash ...
Print Starting logstash ...
./bin/logstash \
--path.data /opt/logstash/data \
--path.logs /opt/logstash/logs \
--path.settings /opt/logstash/config \
&>> logs/logstash.out &
PIDS="$PIDS $!"
Print Logstash started.
}
function Main {