Log Alerts
In the event of an error, an error message gets logged into the esberr.log file. Instead of manually checking this log file, email alerts can be configured with specific log messages in the LogEmailer present at $FIORANO_HOME/esb/samples/SamplePrograms/Misc/LogEmailer.java based on the filters set in the filter.txt file.
To use the Log Emailer and edit the filter.txt file, perform the following actions after stopping the API Management Server / API Gateway Server:
- Start eStudio and open the Profile Management perspective.
- To enable sending of log alerts in
- API Management Server: Load the AMS profile and enable the LogAlertSendingEnabled option by going to APIMANAGER > Fiorano > Esb > Transport > FESTransportManager.
- API Gateway Server: Load AGS profile and enable the LogAlertSendingEnabled option by going to APIGATEWAY > Fiorano > Esb > Peer > Configuration > FPSCommonConfigLoader.
- API Management Server: Load the AMS profile and enable the LogAlertSendingEnabled option by going to APIMANAGER > Fiorano > Esb > Transport > FESTransportManager.
- Start the server.
- Set the configurations related to mail authentication and fiorano servers in the config.properties file at $FIORANO_HOME/esb/samples/SamplePrograms/Misc.
- Set the texts to be filtered in the filter.txt file at $FIORANO_HOME/esb/samples/SamplePrograms/Misc.
Compile the program using the command below:
CODE../bin/compile-client.sh LogEmailer.java
Run the program using the command below:
CODE../bin/run-client.sh LogEmailer
Program subscribes to the topic given in the config.properties file and starts sending emails to the recipient in case of logs with the text given in filter.txt file.