I am using PHP 7.2 on Amazon Linux
The following are my pools settings that I include inside my pool's.conf file so each pool will write its own logs
php_admin_value[error_log] = /var/log/php-fpm/7.2/$pool-error.log
php_admin_flag[log_errors] = on
catch_workers_output = yes
Then I did add the file and permissions to it
touch /var/log/php-fpm/7.2/pool1-error.log
chmod 777 /var/log/php-fpm/7.2/pool1-error.log
The default php-fpm-7.2.conf has this that I am trying to override
error_log = /var/log/php-fpm/7.2/error.log
The log is being written to /var/log/php-fpm/7.2/error.log and nothing is written to the custom log.
And yes, I restarted/reloaded php-fpm several times.
Any ideas?