Hello, I hope you’re doing well!
I recommend using the new statistics for each daemon to perform these calculations. You can see how to obtain them via the API here: https://documentation.wazuh.com/current/user-manual/api/reference.html#operation/api.controllers.manager_controller.get_daemon_stats
You can filter by the wazuh-remoted, wazuh-analysisd, and/or wazuh-db daemons, or retrieve all three together by default.
These new statistics are much more suitable, real-time, and count from the last restart. I believe this way you’ll get more consistent numbers to perform the calculation you need.
In this particular case, what calculation do you need to perform? EPS processed (by analysisd), or it could be bytes or EPS received by wazuh-remoted. It’s possible that analysisd is receiving events from a module configured on the manager directly, such as Azure or GitHub. In these cases, there could be more events processed by analysisd than received by wazuh-remoted. Let me know if this data is more suitable.
Let me know if you need anything else!