Want to subscribe to topics you're interested in?
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:
    1:08 AM
    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

    49,221
    11,291
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,566
    Local Time:
    5:38 AM
    Nginx 1.21.x
    MariaDB 10.x
    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:
    1:08 AM
    1.17.8
    10.3
    So it won't matter much in the monitoring of nginx?
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,221
    11,291
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,566
    Local Time:
    5:38 AM
    Nginx 1.21.x
    MariaDB 10.x
    yeah won't matter, the key metrics for Nginx still get collected/monitored :)