Hello moosemaimer, we are currently in the process of incorporating the corresponding documentation for Wazuh indexer, the steps are very similar to elasticsearch:
1. Edit /etc/wazuh-indexer/opensearch.yml file, add or edit the following value:
- bootstrap.memory_lock: true
2. Create the following directory:
- mkdir -p /etc/systemd/system/wazuh-indexer.service.d
3. Create this file and add the following value with this command:
cat > /etc/systemd/system/wazuh-indexer.service.d/wazuh-indexer.conf << EOF
[Service]
LimitMEMLOCK=infinity
EOF
4. Edit /etc/wazuh-indexer/jvm.options with the memory values you desire, you have to modify the -Xms and -Xmx values:
# Xms represents the initial size of total heap space # Xmx represents the maximum size of total heap space
-Xms4g
-Xmx4g
5. Reload and restart the wazuh-indexer service
- systemctl daemon-reload
- systemctl restart wazuh-indexer
6. Check that the memory lock is set
- curl -k -u admin:{password} "https://{indexer_ip}:9200/_nodes?filter_path=**.mlockall&pretty"
You should see something like this:
{ "nodes" : {
"Mu8NLTv3SqKeWtisKU8Y6A" : {
"process" : {
"mlockall" : true
}
}
}
}
Regards, Raúl.