Welcome to Centmin Mod Community
Become a Member

Nginx Setting up nginx amplify

Discussion in 'Nginx and PHP-FPM news & discussions' started by Lav, Apr 18, 2020.

  1. Lav

    Lav Member

    49
    1
    8
    Feb 23, 2020
    Ratings:
    +1
    Local Time:
    12:06 PM
    1.17.8
    10.3
    Trying to set up nginx amplify. Did all the process right. The only issue I am facing is in the last step where I need to do these.
    Code:
    1. The access.log log format should include an extended set of NGINX variables.
    2. The error.log log level should be set to warn.
    
    I have already installed fail2ban therefore my domain vhost looks like this
    Code:
    access_log /home/nginx/domains/domain.com/log/access.log;
      error_log /home/nginx/domains/domain.com/log/error.log;
    How to get it done? Also do I need to setup these
    Code:
    1. The access.log log format should include an extended set of NGINX variables.
    2. The error.log log level should be set to warn.
    
    in vhostconf too?

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:36 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just skip changing nginx access log format and forgo the extended variables as changing nginx access log format will break any current or future web app/tool/log analysers that depend on and expect the usual default nginx format
     
  3. Lav

    Lav Member

    49
    1
    8
    Feb 23, 2020
    Ratings:
    +1
    Local Time:
    12:06 PM
    1.17.8
    10.3
    So it won't matter much in the monitoring of nginx?
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    4:36 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah won't matter, the key metrics for Nginx still get collected/monitored :)