Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

apache log format json

LogFormat "{ "time":"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ", "process":"%D", "filename":"%f", "remoteIP":"%a", "host":"%V", "request":"%U", "query":"%q", "method":"%m", "status":"%>s", "userAgent":"%{User-agent}i", "referer":"%{Referer}i" }," combined
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apache #log #format #json
ADD COMMENT
Topic
Name
9+2 =