Log Source Stopped Working

Hello Guys,

How do you monitor log sources? I need to monitor some of Data Streams, when they are not sending logs, I need to be alerted. What do you suggest?

I have created esql rule but sometimes it is not woking:
FROM logs-hashicorp_vault.audit-default
| WHERE @timestamp > NOW() - 24 hours
| STATS count = COUNT(*)
| WHERE count == 0

Hey, here is a question on a similar topic that has a good answer