I checked the nginx error logs on our server and found that they start from a date formatted as:
2015/08/30 05:55:20
i.e. YYYY/MM/DD HH:mm:ss. I tried to find an existing date template that could help me figure this out quickly, but, unfortunately, could not find such a date format. In the end, I had to write a template like:
%{YEAR}/%{MONTHNUM}/%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE}?
I still hope if there will be a shorter template for this?
source
share