Can we filter the logs by time in the console?

Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • How can we fetch logs by the exact time, hours, and minutes? 

Environment

  • Liferay PaaS

Resolution

  • Now with the updated console, you can filter by exact time on the UI too.
  • You can still use the Command Line Tool to extract the logs from any specific time you want. Please check the documentation here and the example command returning the Liferay service's application log from 11:00 AM to 11:30 AM:
    lcp log -p <project> -e prd -s liferay --since "2023-06-16T11:00:00+00:00" --until "2023-06-16T11:30+00:00" --type application > c:\Liferay\liferaylog.log
  • You can also filter to time in the URL that is displayed in your browser after you select the start and the end date, you will get a URL like the one below, where you can set the time after the 'T' parameter just like you set it in the CLI command:
    https://console.liferay.cloud/projects/<project>-prd/logs?startDate=2023-06-16T00%3A00%3A00%2B02%3A00&endDate=2023-06-16T23%3A59%3A59%2B02%3A00
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助