Last active
June 3, 2019 21:49
-
-
Save josh-cain/d7d69b1b93415b1324942bf896bbfa6d to your computer and use it in GitHub Desktop.
LogFormat Directive for ISO 8601 Format @ Apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Don't forget, requires mod_log_config | |
| # ISO 8601 Date format: %{%Y-%m-%dT%T}t.%{msec_frac}t%{%z}t | |
| # I.E. | |
| LogFormat "%{%Y-%m-%dT%T}t.%{msec_frac}t%{%z}t%{%z}t source-ip=%a user-agent=%{User-agent}i referer=%{Referer}i" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would be the right format %{%Y-%m-%dT%T}t%{%z}t yours is using timezone twice and also uses microseconds which is not something present in ISO 8601