,whenever timeout happens we need to send all the affected transaction via email to particular email ids. is it possible to do this? ex. 504 timeout is happened for 2 hours we have to send all the affected transactions in email.

 
0 6 155
6 REPLIES 6

Not applicable

In Apigee that option is not there. But yes, you can send your logs to a logging system like splunk and configure there to send the email when error is noticed.

Thanks for the response Priyadarshi. we're using MTpUTTY for logging system so can i have the configuration steps.

Then you can use one SMTP server and set a cron job to run in every 5mins and it will check the logs, if any error will be there it will trigger mail.

All these you can put in a script and set the script to cron.

Thanks and I will come back to you for any queries/concerns.

Another option, a lot more expensive resource-wise, would be to send a callout after each transaction to be stored in a file/db-collection/cache, 1 record per request Id.

Sending a call "process complete" will delete the record from where it's being stored.
Run a request every N minutes checking for open records with creation time > 2 hours. For those found, send email and delete.

If everything has to be done on Apigee, using the Cache or KVM might be challenging as you might go beyond limits.

try sending a call after every transaction to store in file / db-collection / cache, 1 entry per request id. Sending a process complete call will remove the entry from where it is stored. everything has to be done on Apigee, using the cache or KVM can be challenging as you can go beyond the limits. Hope this helps