How to avoid writing large data into Iguana Logs
Sometime we need to send large data into Iguana Queue or process. As a result, these large data will increase Iguana log size dramatically. This article demonstrate how to use Iguana Filter to avoid logging Large Data.
To minimize logging Large Data, use Filter scripts instead of From or To Translator scripts to leverage the additional logging settings specific to the Filter component.
The best way to minimize log entries for an incoming large message would be to utilize the Filter script to reduce the size of the message before the message is logged. This can be done by removing a large base64 encoded attachment, as an example.
To do this, in the ‘Apply filter’ setting select ‘before writing the message to the queue’
This will apply the filter before the processed message is logged. In this way only the processed messages are logged unless you enable Log pre-filter message. Do not select the additional option of logging the pre or post filtered message to ensure that logging is kept to a minimum.
These options are documented here: Configure the Channel Filter - iNTERFACEWARE Help Center