When trying to download today's log from the Okta Access Gateway (OAG) Admin UI console, an error occurs, saying the log file size in the worker node(s) is too large.
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)
/opt/oag/bin/logPrepareConfig.sh on each node. The mentioned error can happen in two cases: - The generated log archive on the worker node exceeds 2GB.
- The combined log archive (admin + all workers) on the admin node exceeded 2GB.
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.
- Login to appliance shell.
- Open the config file in an editor:
sudo vi /opt/oag/bin/logPrepareConfig.sh - Increase the value of MAX_ALLOWED_LOG_SIZE based on the estimation.
- Run the steps above on all the remaining nodes in the cluster.
- Execute log download again from 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.
