From 35028bf8b8f7d649ee0343c18759976fadfea1e6 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Tue, 25 Jul 2023 09:23:08 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20filebeat=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EC=97=90=20=EB=93=A4=EC=96=B4=EA=B0=88=20=EB=95=8C=20=EC=A0=88?= =?UTF-8?q?=EB=8C=80=20=EA=B2=BD=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.ebextensions/02-set-filebeat.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/.ebextensions/02-set-filebeat.config b/backend/.ebextensions/02-set-filebeat.config index b77a078e6..f183ba674 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -10,7 +10,7 @@ }, "/tmp/restart_filebeat.sh": { "mode": "000755", - "content": "#!/bin/bash\n\nPID=$(ps -ef | grep ./filebeat | grep -v grep | awk '{print $2}')\n\nif [[ -n \"$PID\" ]]; then\n echo \"Filebeat PID : $PID\"\n sudo kill -9 $PID\nelse\n echo \"Filebeat is not running.\"\nfi\n\necho \"Restarting Filebeat\"\ncd filebeat-7.14.1-linux-x86_64 && sudo chmod 644 filebeat.yml && nohup ./filebeat -e > filebeat.log 2>&1 &\ndisown\necho \"Filebeat restarted\"\n" + "content": "#!/bin/bash\n\nPID=$(ps -ef | grep ./filebeat | grep -v grep | awk '{print $2}')\n\nif [[ -n \"$PID\" ]]; then\n echo \"Filebeat PID : $PID\"\n sudo kill -9 $PID\nelse\n echo \"Filebeat is not running.\"\nfi\n\necho \"Restarting Filebeat\"\ncd /home/ec2-user/filebeat-7.14.1-linux-x86_64 && sudo chmod 644 filebeat.yml && nohup ./filebeat -e > filebeat.log 2>&1 &\ndisown\necho \"Filebeat restarted\"\n" } }, "commands": {