This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Viewing and Downloading Logs
WSO2 API Cloud provides separate tenants for each organization and all tenant activities are saved as logs. Each tenant is able to obtain the logs of a specified time period for their organization (tenant) to view, download or submit to an on-premise monitoring service.
Viewing logs
Follow the steps below to view API Gateway logs via the live log viewer.
- Access the WSO2 API Cloud Admin portal viaÂ
https://api.cloud.wso2.com/admin
, and sign in with your credentials. - On the left navigator, click to expand the LOG ANALYZER section, and then click LIVE LOG VIEWER.Â
This displays the live log viewer with all your recent logs:The live log viewer displays the latest 600 API Gateway logs related to your organization, and it works across all regional gateways around the globe. The logs are displayed in the same order in which they are generated during initial page load. The log entries on this page are refreshed every 15 seconds and the latest log entry is displayed at the bottom.
The live log viewer displays the following types of real-time API Gateway logs, which can be useful when you want to troubleshoot issues:
- INFO — Indicated by a blue tag
- ERROR — Indicated by a red tag
- WARN — Indicated by a brown tag
- DEBUG — Indicated by a green tag
Downloading logs
WSO2 API Cloud allows you to download load balancer logs as well as Gateway logs. Follow the steps below to download a required log type for a specified date.
You need to have a paid plan to download logs. If you are on a trial account, first you should upgrade to a preferred pricing plan.
- Access the WSO2 API Cloud Admin portal viaÂ
https://api.cloud.wso2.com/admin
, and sign in with your credentials. On the left navigator, click to expand the LOG ANALYZER section, and then click DOWNLOAD LOGS.
This displays the Download logs page.
Select the required log Type and the Date for which you want to download the logs. This displays a download link to download the log files.
If necessary it is possible to retrieve the logs for the current day. However, these log files are updated every 30 minutes.
Click the download link that appears. This downloads a ZIP file.
Note
The download link that is displayed expires in 5 minutes. A timer indicates how much time is left for the download link to expire. If you were not able to download the log file before the link expired, you can select the same log type and date to re-generate the download link.
Extract the ZIP file to view the log files.