There is an issue with a job using an email template to send a large log file for the job as an email attachment to the notification. However, it is only sending part of the file.
The glob has LOG_LINES set to 0 and the LogMaxEndLines is set to 0 in each application server.
The app server has been restarted to enforce the settings. Only the first 2000 lines are being sent, with the remaining being truncated.
Due to product limitation to protect the scheduler from crashing.
In AutoSys 12.1, a change was introduced to limit the maximum number of lines in an email attachment to prevent scheduler crashes. The maximum allowed is 10000 lines.
Examples:
// The value of LOG_LINES and LogMaxEndLines will determine // the value of number of lines to be retrieved // LOG_LINES | LogMaxEndLines | Return Value| // ============================================================== // 0 (full file) | 0 (full file) | 2000 | // 0 (full file) | 10000 (MAX Allowed) | 10000 | // 0 (full file) | 10001 (Over the limit) | 2000 | // 0 (full file) | 500 | 500 | // 500 | 400 | 400 | // 400 | 500 | 400 | // No Val | 0 (full file) | 2000 | // 500 | 0 (full file) | 500 | // 10000 (MAX Allowed) | 0 (full file) | 10000 | // 10001(Over the limit) | 0 (full file) | 2000 | // 10000 (MAX Allowed) | 10000 (MAX Allowed) | 10000 | // 10001(Over the limit) | 10001 (Over the limit) | 2000 | // ==============================================================
Viable Workaround Solutions:
/tmp/large_report.txt).Bash# This runs as a command job in AutoSysecho "Here is the requested report." | mailx -s "Daily 9MB Report" -a /tmp/large_report.txt [email protected]send_report.py or send-report.ps1) after the main job finishes. This script uses standard libraries to construct an MIME email with the 9MB attachment and send it.\\fileserver\reports\daily\).\\fileserver\reports\daily\output_20231027.txt"aws s3 cp or azcopy) to upload the file to a cloud storage bucket.gzip filename.txt before the notification triggers. Configure AutoSys to attach the .gz file.