Hi Masara.
Regarding the error you mentioned, it is related to the missing Wazuh template since it seems there is some issue with the mapping. If the Wazuh template is applied properly, the [
agent.name] field should be keyword instead of text.
I would recommend you to re-map your index. This means you should create a new index using the data from the corrupted index and apply the template. Once you are done, you can replace the corrupted index with the well-mapped index. Basically, re-index the affected index with
agent.name mapped as keyword.
To check the content of your template, go to Indexer Management > Dev Tools and use the command:
curl localhost:9200/_template/wazuh
And, to check which template is being applied for a specific index:
Example:
curl localhost:9200/wazuh-alerts-4.x-2024.07.02/_mapping?pretty
I hope this can help you