From af0245574696d70ed37d9a358ba03be942445d8e Mon Sep 17 00:00:00 2001 From: java-saeng Date: Fri, 14 Jul 2023 19:37:54 +0900 Subject: [PATCH 01/13] =?UTF-8?q?fix=20:=20yml=20indent=20=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20=EB=B9=8C=EB=93=9C=20=EC=8B=A4?= =?UTF-8?q?=ED=8C=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - json 으로 변경해보기 + EOF를 제일 왼쪽에 붙이기 --- backend/.ebextensions/02-set-filebeat.config | 71 +++++++------------- 1 file changed, 23 insertions(+), 48 deletions(-) diff --git a/backend/.ebextensions/02-set-filebeat.config b/backend/.ebextensions/02-set-filebeat.config index 769860b5e..ac25cf9ef 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -1,48 +1,23 @@ -files: - "/tmp/make_filebeat_yml.sh": - mode: "000755" - content: | - #!/bin/bash - PASSWORD=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PASSWORD) - HOST=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_HOST) - PORT=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PORT) - USER=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_USER) - cat > /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < Date: Sat, 15 Jul 2023 02:14:05 +0900 Subject: [PATCH 02/13] =?UTF-8?q?fix=20:=20filebeat=20=EB=94=94=EB=A0=89?= =?UTF-8?q?=ED=84=B0=EB=A6=AC=EC=97=90=20=EB=93=A4=EC=96=B4=EA=B0=84=20?= =?UTF-8?q?=ED=9B=84=20filebeat=20=EC=8B=A4=ED=96=89=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.ebextensions/02-set-filebeat.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/.ebextensions/02-set-filebeat.config b/backend/.ebextensions/02-set-filebeat.config index ac25cf9ef..04d57fe59 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -16,8 +16,8 @@ "02_run_make_filebeat_yml_script": { "command": "bash /tmp/make_filebeat_yml.sh" }, - "03_run_filebeat_yml": { - "command": "nohup /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat -e &" + "03_run_filebeat": { + "command": "cd filebeat-7.14.1-linux-x86_64 && nohup ./filebeat -e &" } } } From ce295d7ed79f074ab53a5187c7518c1202684126 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Sat, 15 Jul 2023 02:25:54 +0900 Subject: [PATCH 03/13] =?UTF-8?q?fix=20:=20=EB=B0=B1=EA=B7=B8=EB=9D=BC?= =?UTF-8?q?=EC=9A=B4=EB=93=9C=EB=A1=9C=20=EC=8B=A4=ED=96=89=ED=95=98?= =?UTF-8?q?=EC=97=AC=20GitHub=20Actions=EA=B0=80=20=EB=81=9D=EB=82=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=95=84=EC=84=9C=20=EA=B7=B8=EB=83=A5=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89?= 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 04d57fe59..a3128b443 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -17,7 +17,7 @@ "command": "bash /tmp/make_filebeat_yml.sh" }, "03_run_filebeat": { - "command": "cd filebeat-7.14.1-linux-x86_64 && nohup ./filebeat -e &" + "command": "cd filebeat-7.14.1-linux-x86_64 && ./filebeat -e" } } } From 6e19570c8401b8521575cdc42f81e70b8a45f421 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Tue, 18 Jul 2023 22:09:23 +0900 Subject: [PATCH 04/13] =?UTF-8?q?fix=20:=20filebeat=20=EC=9E=AC=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EB=B0=8F=20=EC=9E=AC=EC=8B=A4=ED=96=89=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.ebextensions/02-set-filebeat.config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/.ebextensions/02-set-filebeat.config b/backend/.ebextensions/02-set-filebeat.config index a3128b443..1eb2c23a7 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -5,8 +5,12 @@ "content": "#!/bin/bash\nPASSWORD=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PASSWORD)\nHOST=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_HOST)\nPORT=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PORT)\nUSER=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_USER)\ncat > /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < Date: Thu, 20 Jul 2023 00:04:23 +0900 Subject: [PATCH 05/13] =?UTF-8?q?fix=20:=20restart=20=EC=89=98=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=EC=97=90=EC=84=9C=20=ED=98=84?= =?UTF-8?q?=EC=9E=AC=20=EC=8B=A4=ED=96=89=EB=90=98=EA=B3=A0=20=EC=9E=88?= =?UTF-8?q?=EB=8A=94=20filebeat=EB=A5=BC=20=EC=B0=BE=EC=9D=84=20=EB=95=8C,?= =?UTF-8?q?=20./filebeat=EB=A1=9C=20=EC=8B=9C=EC=9E=91=ED=95=98=EB=8A=94?= =?UTF-8?q?=20ps=EB=A5=BC=20=EC=B0=BE=EC=95=84=EC=95=BC=20=ED=96=88?= =?UTF-8?q?=EC=97=88=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - grep filebeat가 아닌 grep ./filebeat로 수정 --- 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 1eb2c23a7..836ff11df 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 kill -9 $PID\nelse\n echo \"Filebeat is not running.\"\nfi\n\necho \"Restarting Filebeat\"\ncd filebeat-7.14.1-linux-x86_64 && nohup ./filebeat -e &\n\necho \"Filebeat restarted\"" + "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 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 &\n\necho \"Filebeat restarted\"" } }, "commands": { From 3896cedbf4be1952cb83cc13ccc585b537afb7e7 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Thu, 20 Jul 2023 01:07:02 +0900 Subject: [PATCH 06/13] =?UTF-8?q?fix=20:=20filebeat=EB=A5=BC=20nohup?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=8B=A4=ED=96=89=ED=95=98=EC=97=AC=20Git?= =?UTF-8?q?Hub=20Actions=EC=97=90=EC=84=9C=EB=8A=94=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=EA=B0=80=20=EB=81=9D=EB=82=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=95=84=20=EB=AC=B4=ED=95=9C=EB=A1=9C=EB=94=A9=20?= =?UTF-8?q?=EB=B0=9C=EC=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - disown 명령어를 통해서 백그라운드에서 실행되는 프로세스를 현재의 쉘과 분리 --- 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 836ff11df..19751215c 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 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 &\n\necho \"Filebeat restarted\"" + "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\"" } }, "commands": { From 62ab1fe69285902aa91743004ddd9cb7536323a6 Mon Sep 17 00:00:00 2001 From: seokhongkim Date: Mon, 24 Jul 2023 11:46:15 +0900 Subject: [PATCH 07/13] =?UTF-8?q?fix:=20newline=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/.ebextensions/02-set-filebeat.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/.ebextensions/02-set-filebeat.config b/backend/.ebextensions/02-set-filebeat.config index 19751215c..f4a4192f7 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -2,15 +2,15 @@ "files": { "/tmp/make_filebeat_yml.sh": { "mode": "000755", - "content": "#!/bin/bash\nPASSWORD=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PASSWORD)\nHOST=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_HOST)\nPORT=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PORT)\nUSER=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_USER)\ncat > /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < filebeat.log 2>&1 &\ndisown\necho \"Filebeat restarted\"" + "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" } }, "commands": { From ed4920cf648fec38201b8c59d15fd39f0c6c877e Mon Sep 17 00:00:00 2001 From: seokhongkim Date: Mon, 24 Jul 2023 12:10:37 +0900 Subject: [PATCH 08/13] =?UTF-8?q?fix:=20newline=20=EC=A0=9C=EA=B1=B0?= 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 f4a4192f7..e1cd38558 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -2,7 +2,7 @@ "files": { "/tmp/make_filebeat_yml.sh": { "mode": "000755", - "content": "#!/bin/bash\nPASSWORD=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PASSWORD)\nHOST=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_HOST)\nPORT=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_PORT)\nUSER=$(sudo /opt/elasticbeanstalk/bin/get-config environment -k ELASTICSEARCH_USER)\ncat > /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < /home/ec2-user/filebeat-7.14.1-linux-x86_64/filebeat.yml < Date: Tue, 25 Jul 2023 01:49:17 +0900 Subject: [PATCH 09/13] =?UTF-8?q?fix=20:=20filebeat=20=EC=95=95=EC=B6=95?= =?UTF-8?q?=20=ED=92=80=20=EC=8B=9C=20=EA=B2=BD=EB=A1=9C=20=EB=AA=85?= =?UTF-8?q?=EC=8B=9C=ED=95=B4=EC=A3=BC=EA=B8=B0?= 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 e1cd38558..b77a078e6 100644 --- a/backend/.ebextensions/02-set-filebeat.config +++ b/backend/.ebextensions/02-set-filebeat.config @@ -6,7 +6,7 @@ }, "/tmp/install_filebeat.sh": { "mode": "000755", - "content": "#!/bin/bash\nFILEBEAT_DIRECTORY=\"/home/ec2-user/filebeat-7.14.1-linux-x86_64\"\nif [ ! -d \"$FILEBEAT_DIRECTORY\" ]; then\n wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.14.1-linux-x86_64.tar.gz\n tar xzvf filebeat-7.14.1-linux-x86_64.tar.gz\nelse\n echo \"Filebeat already installed.\"\nfi\n" + "content": "#!/bin/bash\nwget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.14.1-linux-x86_64.tar.gz\ntar xzvf filebeat-7.14.1-linux-x86_64.tar.gz -C /home/ec2-user\n" }, "/tmp/restart_filebeat.sh": { "mode": "000755", From 35028bf8b8f7d649ee0343c18759976fadfea1e6 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Tue, 25 Jul 2023 09:23:08 +0900 Subject: [PATCH 10/13] =?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": { From dc3de0605e39e53ba899a3a262aea34e83d4422a Mon Sep 17 00:00:00 2001 From: java-saeng Date: Tue, 25 Jul 2023 09:52:36 +0900 Subject: [PATCH 11/13] =?UTF-8?q?fix=20:=20nohup=EC=97=90=20=EA=B4=84?= =?UTF-8?q?=ED=98=B8=20=EC=B9=98=EA=B8=B0?= 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 f183ba674..fbfea0c47 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 /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" + "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": { From bdf985b6cd8507a3e6806a6a53050b3c31426b80 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Tue, 25 Jul 2023 23:53:17 +0900 Subject: [PATCH 12/13] =?UTF-8?q?fix=20:=20disown=20=EC=82=AD=EC=A0=9C?= 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 fbfea0c47..c85323769 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 /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" + "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 &)\necho \"Filebeat restarted\"\n" } }, "commands": { From b00e7117b9f04ceb85c33a3709c96538fc79a0a3 Mon Sep 17 00:00:00 2001 From: java-saeng Date: Fri, 28 Jul 2023 16:45:08 +0900 Subject: [PATCH 13/13] =?UTF-8?q?refactor=20:=20sql=20=ED=99=95=EC=9E=A5?= =?UTF-8?q?=EC=9E=90=20=EB=96=BC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._create_table_article.sql.sql => V3__create_table_article.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename backend/src/main/resources/db/migration/prod/{V3__create_table_article.sql.sql => V3__create_table_article.sql} (100%) diff --git a/backend/src/main/resources/db/migration/prod/V3__create_table_article.sql.sql b/backend/src/main/resources/db/migration/prod/V3__create_table_article.sql similarity index 100% rename from backend/src/main/resources/db/migration/prod/V3__create_table_article.sql.sql rename to backend/src/main/resources/db/migration/prod/V3__create_table_article.sql