Welcome! Log In Create A New Profile


New slowlog format

Posted by Ilja 
New slowlog format
July 10, 2013 08:04PM
by default slowlog generates only script filename
script_filename = /data/www/forum.php

how I should configure php-fpm to get the following log format?
script_filename = /data/www/forum.php* mod=rss&fid=3378&auth=0 (0.550162
INFO here: http://php-fpm.org/wiki/New_slowlog_format
/etc/php5/fpm # cat /etc/debian_version 7.1
PHP 5.3.26-1~dotdeb.0


You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: New slowlog format
July 11, 2013 01:28AM
You can use php-fpm's access_log for logging execution, memory, execution times, etc

Something like this for pool's settings will go:
access.log = /var/log/php-acc-$pool.log
access.format = "%R %u %n %t %s %f %{mili}d %{kilo}M %C%% \"%m %r%Q%q\""
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready