# chown -R kibana:kibana /usr/share/kibana/optimize # chown -R kibana:kibana /usr/share/kibana/plugins
# sudo -u kibana /usr/share/kibana/bin/kibana-plugin remove wazuh # rm -rf /usr/share/kibana/optimize/bundle
# sudo -u kibana NODE_OPTIONS="--max-old-space-size=3072" /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.8.2_6.6.1.zip
plugin installation complete
Hi Ron,
Yellow status is commonly caused by a missing replica. Let me explain it:
For example: if we have configured 1 replica, each index must be replicated in one more node from your Elasticsearch cluster.
Example of an index that uses 5 primary shards and 1 replica:
Node 1: S1 S2 S3 R4 R5
Node 2: R1 R2 R3 S4 S5
Where Sn are primary shards, and Rn are replicas.
If you have a single node Elasticsearch cluster, you may want to reduce the number of replicas to 0, so your alert indices will be green.
Download the template:
curl https://raw.githubusercontent.com/wazuh/wazuh/3.8/extensions/elasticsearch/wazuh-elastic6-template-alerts.json -o template.json
Replace this:
"settings": {
"index.refresh_interval": "5s"
},
with:
"settings": {
"index.refresh_interval": "5s",
"index.number_of_replicas": "0"
},
Now, update your template:
curl -X PUT "http://localhost:9200/_template/wazuh" -H 'Content-Type: application/json' -d @template.json
Tomorrow index and onwards will use 0 replicas, so they will be green.
For already existing ones, you can reduce their number of replicas as follow:
curl -X PUT "localhost:9200/_settings" -H 'Content-Type: application/json' -d'
{
"index.number_of_replicas" : 0
}
'
The above command will reduce the number of replicas to 0 for all indices.
I hope it helps.
Best regards,
Jesús