Hi Andrew,
We can help you out here. Which version of Elastic Stack and Wazuh are you using?


I also recommend using Filebeat to upload and manage your policy.
Follow these instructions to configure Filebeat to upload your ILM policy and Wazuh template:
-Edit the template /etc/filebeat/wazuh-template.json settings section. Add the next code:
 Â
{
 "order": 0, "index_patterns": [  "wazuh-alerts-3.x-*",  "wazuh-archives-3.x-*" ], "settings": {  "index.refresh_interval": "5s",  "index.number_of_shards": "3",  "index.number_of_replicas": "0",  "index.lifecycle.name": "retention_policy",  "index.auto_expand_replicas": "0-1",  "index.mapping.total_fields.limit": 10000,  "index.query.default_field": [  ...
  ...
}# Wazuh - Filebeat configuration filefilebeat.modules: - module: wazuh  alerts:   enabled: true  archives:   enabled: false
setup.template.json.enabled: truesetup.template.json.path: '/etc/filebeat/wazuh-template.json'setup.template.json.name: 'wazuh'setup.template.overwrite: truesetup.ilm.enabled: truesetup.ilm.policy_name: 'retention_policy'setup.ilm.policy_file: '/etc/filebeat/policy.json'
# Send events directly to Elasticsearchoutput.elasticsearch:Â hosts: ['http://ELASTICSEARCH_IP:9200']filebeat setup --index-management -E setup.template.json.enabled=false
systemctl restart filebeat
curl -X PUT "localhost:9200/wazuh-alerts-3.x-2019.08.20/_settings?pretty" -H 'Content-Type: application/json' -d'{Â Â "index" : {Â Â Â Â "lifecycle.name" : "retention_policy"Â Â }}'Hi Andrew, sorry for the late response.After looking in your case and testing it I came up with this solution that may help you.Â
GET _template/filebeat-7.3.0