Question: How can I view db2diag.log entries as they are written? While I’m troubleshooting , I open the db2diag.log file and then press refresh to see the latest entries.
Answer: Use the db2diag –follow parameter to continuously display appended records as they appear in db2diag.log. The records continue to appear until you execute Ctrl + C.
Db2diag –f Db2diag –follow
More information on db2diag.log