Legacy Knowledge Base
Published Sep. 10, 2025

How to acquire Liferay PaaS logs in a file on a local machine without requiring browser interaction

Written By

Isaac Wilson

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Our team would like to transfer Liferay PaaS logging into a file on our local machines -- however, we would like to automate this if possible, and the regular UI logging and CLI lcp log options (including the piping example listed in the linked article) seem to require interaction with a browser.

Environment

  • Liferay PaaS

Resolution

  • This can be accomplished by providing authentication parameters to an lcp login command (either directly or via a script variable), prior to an lcp log and tee command combination
  • As a simplistic example (which can be worked into into a more robust command and/or recurring script), the following terminal command can be used to pull all logs generated on Apr. 23 from an environment's webserver service into a text file (with the file being created without manually terminating the command, as the time fame is limited):
    echo email@email.com 'password' | lcp login --no-browser; lcp log -u liferay-projectname-env.lfr.cloud --since "04/23/2021 00:00:00" --until "04/23/2021 23:59:59" | tee Apr23-webserver.txt

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base