Different results in "Discover" and "Alerting" Tab for same Index Pattern

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
I am in the process of setting up an alert in the “Alerting” tab. My data filter is logs.message contains “Example123”. Now I see a lot of documents below under “Count of documents”. However, if I enter the same text in the “Discover” tab, only 4 entries are displayed. I don’t understand why this could be. I have selected the correct data index 100%.


Relevant Logs or Screenshots: