Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Optimize kibana through kibana user instead of root
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenidd committed Apr 16, 2020
1 parent f9ac16d commit 4672cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/elastic/wazuh_cf_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ optimize_kibana(){
systemctl stop kibana
echo "Optimizing app" >> /tmp/deploy.log
cd /usr/share/kibana
NODE_OPTIONS="--max-old-space-size=2048" ./bin/kibana --optimize --allow-root
sudo -u kibana /usr/share/kibana/node/bin/node --no-warnings --max-old-space-size=2048 --max-http-header-size=65536 /usr/share/kibana/src/cli --optimize
cd /tmp
echo "App installed!" >> /tmp/deploy.log
systemctl start kibana
Expand Down
2 changes: 1 addition & 1 deletion production/elastic/wazuh_cf_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ optimize_kibana(){
systemctl stop kibana
echo "Optimizing app" >> /tmp/deploy.log
cd /usr/share/kibana
NODE_OPTIONS="--max-old-space-size=2048" ./bin/kibana --optimize --allow-root
sudo -u kibana /usr/share/kibana/node/bin/node --no-warnings --max-old-space-size=2048 --max-http-header-size=65536 /usr/share/kibana/src/cli --optimize
cd /tmp
echo "App installed!" >> /tmp/deploy.log
systemctl start kibana
Expand Down

0 comments on commit 4672cd5

Please sign in to comment.