forked from elastest/elastest-monitoring-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_startmeup.sh
executable file
·19 lines (12 loc) · 1 KB
/
new_startmeup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -e
if [ -n "$EMS_STANDALONE" ]
then
mv /usr/share/logstash/pipeline/standaloneinlogstash.conf /usr/share/logstash/pipeline/inlogstash.conf
fi
echo '{"channels": ["#websocket"], "hostname": "'$(hostname)'"}' > /thehostname.txt
logstash -f /usr/share/logstash/pipeline/inlogstash.conf --path.data /usr/share/logstash/in_data &>/inlogs.txt &
logstash -f /usr/share/logstash/pipeline/outlogstash.conf --config.reload.automatic --path.data /usr/share/logstash/out_data &>/outlogs.txt &
logstash -f /usr/share/logstash/pipeline/staticoutlogstash.conf --path.data /usr/share/logstash/outstatic_data &>/outstaticlogs.txt &
swagger --port=8888 --host=0.0.0.0 &>/swaggerlogs.txt &
# (while true; do cat /usr/share/logstash/pipes/leftpipe; done; echo GBFST) | tee /gologs.txt /usr/share/logstash/pipes/staticrightpipe >(while true; do cat > /usr/share/logstash/pipes/dynamicrightpipe; done; echo GODDBYE)
go_EMS "/usr/share/logstash/pipes/staticrightpipe" "/usr/share/logstash/pipes/dynamicrightpipe" | tee /gologs.txt