Score:0

Nginx access_log format "timing"?

au flag

I'm using a config snippet to setup a reverse proxy with nginx version: nginx/1.14.1 - it has "timing" specified as access_log's format - that causes an error.

## Application specific logs
access_log /var/log/nginx/yourdomain.com-access.log timing;
error_log /var/log/nginx/yourdomain.com-error.log;

Here's what nginx -t says:

nginx: [emerg] unknown log format "timing" in /etc/nginx/conf.d/virtual.conf:27
nginx: configuration file /etc/nginx/nginx.conf test failed

Might this be a feature of a newer nginx or the Plus version? Or does "timing" need to be defined somewhere?

Score:0
us flag

The second parameter for a access_log is a name for a pre-defined log_format. In most cases you can just omit this parameter and Nginx will use the default option which is "combined".

Look this at oficial reference of access_log or at this answer.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.