Downloading Large Log Files from Liferay Cloud
written-by
Santhosh Kumar
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- Unable to download complete log files from the Liferay Cloud console. The downloaded file size appears truncated.
Resolution
- The Liferay Cloud console limits log file downloads to 10,000 lines to prevent performance issues.
- To retrieve more logs, use the Liferay Cloud CLI with the
since and until parameters to specify a time range:
lcp log --since "YYYY/MM/DD HH:mm:ss" --until "YYYY/MM/DD HH:mm:ss" -p <project-name>-<environment> -s <service-name> > logs.txt
- Replace the placeholders with appropriate values.
- For example, to download web server logs from February 8th, 9 AM to February 10th, 3 PM for the project "myproject" in the "dev" environment:
lcp log --since "2025/02/08 09:00:00" --until "2025/02/10 15:00:00" -p myproject-dev -s webserver > logs.txt
- Logs are available in the web console for 30 days. Older logs (up to one year) are stored in cold storage in JSON format.
did-this-article-resolve-your-issue