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 Enterprise/Peer server:
- Start eStudio and open the Profile Management perspective.
- To enable sending of log alerts in the
- Enterprise server: Load FES profile and enable the LogAlertSendingEnabled option by going to Fiorano > esb > Transport > TransportManager > FESTransportManagerConfig
- Peer Server: Load FPS profile and and enable the LogAlertSendingEnabled option by going to Fiorano > Esb > Peer > Configuration > FPSCommonConfigLoader.
- Enterprise server: Load FES profile and enable the LogAlertSendingEnabled option by going to Fiorano > esb > Transport > TransportManager > FESTransportManagerConfig
- Start the servers.
- Set the configurations related to mail authentication and fiorano servers in the config.properties file at $FIORANO_HOME/esb/samples/SamplePrograms/Misc directory.
- 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.