Learn about Centmin Mod LEMP Stack today
Become a Member

Access log location

Discussion in 'Other Centmin Mod Installed software' started by Jon Snow, Oct 19, 2019.

  1. Jon Snow

    Jon Snow Active Member

    523
    72
    28
    Jun 30, 2017
    Ratings:
    +114
    Local Time:
    8:52 AM
    Nginx 1.13.9
    MariaDB 10.1.31
    There's a folder called logs for each nginx vhost and it has access logs. I'm trying to find the access logs from last month. Where are they located / moved to?
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,718
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,797
    Local Time:
    9:52 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    they get logrotated out/deleted after a certain time based on logrotate settings for nginx at /etc/logrotate.d/nginx

    settings for /etc/logrotate.d/nginx by default rotate logs daily or when max log size hits 500MB and keeps up to the last 10 rotation of logs via option = rotate 10