Thank you so much Don , Really this is very much helpful,
As you suggested, We can append to for each log entry in the file. Here the concern is , if the appended entries is exceeded the maximum allowed mail size there will be a problem.
Our configuration is like , when ever err log updated then the same error log details with key values automatically stored in the database errlog table , We can refer that details for troubleshooting if some of the log data is not there in the body of the alert mail , here we need just an alert with some limited data in the alert mail as for reference.
also we can say in the mail , "Exception found for replication on $host, Check the errlog table for more detail and troubleshoot the issue"
So can you please suggest can we send only first 500/1000 lines from the log file. So once alert mail is received the team will check the errlog table in the database. thanks