I want to specify log format for nginx error logs, but I could not find any variable for errors. I found required variables for access logs like below:
log_format test'$remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" "$gzip_ratio"';
Is there any $error, $error_body or something like this that could be matched for errors?