Hi mariano,
This is expected behavior. Wazuh creates daily alert indices (wazuh-alerts-4.x-YYYY.MM.DD) only when alerts are generated and indexed. If no alerts are produced on a given day, the daily index is not created.
Since Threat Hunting queries only alert indices, no index for today means no alerts indexed yet, so the view appears empty.
To verify that everything is working correctly, you can generate a real alert by running the following command on any agent:
ssh invaliduser@localhost
Enter any password when prompted. This will trigger an SSH failed login alert (rule ID: 5710), create the daily alert index if it does not exist yet, and the alert should then be visible in Threat Hunting.
Best regards,
Dennis Gamboa