When trying to download today's log from the Okta Access Gateway (OAG) Admin UI console, the following error occurs:
Preparing Today's log failed
Log file size in worker node(s) too large, failed to download logs from worker(s)
Add a log forwarder or select a different date.
- Okta Access Gateway (OAG)
- Okta Classic Engine
- Okta Identity Engine (OIE)
/opt/oag/bin/logPrepareConfig.sh on each node.- The generated log archive on the worker node exceeds 2GB.
- The combined log archive (admin + all workers) on the admin node exceeded 2GB.
/opt/oag/logs/. A rough estimation can be done by checking the directory size using : du -sh /opt/oag/logs/*
NOTE:
- It is recommended to use log forwarders and keep minimal logging on the cluster. For more information, refer to Manage log verbosity.
- The workaround mentioned below should only be used as a temporary solution, and the changes must be reverted once the log download is successful.
- Log in to the appliance shell.
- Open the config file in an editor:
sudo vi /opt/oag/bin/logPrepareConfig.sh - Increase the value of
MAX_ALLOWED_LOG_SIZEbased on the estimation. - Run the steps above on all the remaining nodes in the cluster.
- Re-execute the log download from the Admin UI.
- Revert the changes on all the nodes once the download is completed.
- Check and update log verbosity to avoid excessive logging if needed.
