Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can specify custom log format for access log in nginx, but it won't work for error log. I wish I always saw time when error occur. Is it possible?

share|improve this question

No, you cannot change the error log format without changing the Nginx source code.

share|improve this answer
possible via a custom nginx module? – GG01 Sep 9 '15 at 15:19
Yes. You can definitely add this via an nginx module. It might also be possible to do it via Lua now or soon the Javascript scripting they're embedding. – Martin Fjordvald Jan 11 at 5:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.