How to disable PHP-FPM request logging?

I keep seeing logs like these in my Kubernetes cluster:

[php] - -  05/Jul/2020:20:15:55 +0000 "POST /api/bookings" 200

How can I disable them?

If PHP wants to write an error or something, I want to keep that, it's just the request logs I don't care about (NGINX will log them a 2nd time anyway).

I'm using php:7.1-fpm


It depends on linux distributive, e.g. on CentOS you can find config file in derectory /etc/php-fpm.d and disable logging by editing several vars like access.log , php_admin_flag[log_errors], maybe more (depends of php version).


set

access.log = /dev/null

in your php-fpm conf file. In my example /etc/php-fpm.d/www.conf

or for docker file:

RUN echo "access.log = /dev/null" >> /usr/local/etc/php-fpm.d/www.conf