Need to check access logs from webserver in Liferay PaaS environment

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

Issue

  • User needs access to webserver's access logs to check which IPs have accessed their site.

Environment

  • Liferay DXP 7.3+

Resolution

  • Webserver logs already contains the access logs in the Application log itself.
  • Logs format is as below, with $remote_addr added for user's IP:
    log_format  main escape=default  '[nginx] $http_host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent $request_time "$http_referer" "$http_user_agent"';
Was this article helpful?
0 out of 0 found this helpful