LoginSignup
1
0

More than 1 year has passed since last update.

NginxのアクセスログからELBのヘルスチェックを除外する方法

Posted at

方法

/etc/nginx/nginx.confのhttpモジュールを以下のように編集。


http {
    /* 省略 */

    map $http_user_agent $log_ua {
        ~ELB-HealthChecker 0;
        default 1;
    }
    access_log  /var/log/nginx/access.log  main if=$log_ua;

    /* 省略 */
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0