Monitoring the Received Events Count via Logs¶
You can monitor the total number of events received by the WSO2 Streaming Integrator via its sources per given time interval. This is done by configuring WSO2 Streaming Integrator to log the received event count for a specified time interval. The purpose of this log is to estimate the events received by the server during the time it is active. The event counter is reset each time the Streaming Integrator server is restarted.
To configure WSO2 Streaming Integrator to log the total received events count, follow the steps below:
-
Open the
<SI_HOME>/conf/server/deployment.yaml
file. -
Add a parameter named
enableLoggingEventCount
and set it totrue
as shown below:enableLoggingEventCount: true
Info
This is set to
false
by default. -
Add another parameter named
loggingDuration
and give the time interval (in minutes) for which you want the total received event count to be logged. e.g., If you want the total received event count to be logged every minute, you can set the parameter as follows:loggingDuration: 1
If you do not specify the logging duration, the received event count is logged every one minute by default.
-
Save the change. The configuration is as follows:
-
Restart WSO2 Streaming Integrator for the change to be effective.
The total received event count is logged as shown in the example below: