Hi there,
It seems you're trying to apply a new policy to an index that already has an existing policy. To modify the policy, you can do so directly from the Wazuh UI:
1. Navigate to the main menu.
2. Look for the `OpenSearch Plugins` section.
3. Click on `Index Management`.
4. From there, go to `Policy managed indexes`.
5. Select the indexes for which you want to update the policy.
6. Click on `Change policy`.
This should allow you to update the policy for the selected indexes. I've attached some screenshots to guide you through the process. Let me know if you need any further assistance!

