Examples of morgan output.
Format:
:method :url :status :res[content-length] - :response-time ms
Example:
GET /get/cat 200 6 - 3.491 ms
POST /post/cat/animal 200 2 - 0.553 ms
GET /get/cat 200 6 - 0.273 ms
GET /nowhere 404 146 - 5.503 ms
GET /get/nothing 404 18 - 2.206 ms
Format:
:remote-addr :remote-user :method :url HTTP/:http-version :status :res[content-length] - :response-time ms
Example:
::ffff:127.0.0.1 - GET /get/cat HTTP/1.1 200 6 - 3.497 ms
::ffff:127.0.0.1 - POST /post/cat/animal HTTP/1.1 200 2 - 0.548 ms
::ffff:127.0.0.1 - GET /get/cat HTTP/1.1 200 6 - 0.273 ms
::ffff:127.0.0.1 - GET /nowhere HTTP/1.1 404 146 - 3.436 ms
::ffff:127.0.0.1 - GET /get/nothing HTTP/1.1 404 18 - 0.245 ms
Format:
:remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length]
Example:
::ffff:127.0.0.1 - - [25/Aug/2018:02:00:53 +0000] "GET /get/cat HTTP/1.1" 200 6
::ffff:127.0.0.1 - - [25/Aug/2018:02:00:56 +0000] "POST /post/cat/animal HTTP/1.1" 200 2
::ffff:127.0.0.1 - - [25/Aug/2018:02:01:00 +0000] "GET /get/cat HTTP/1.1" 200 6
::ffff:127.0.0.1 - - [25/Aug/2018:02:01:03 +0000] "GET /nowhere HTTP/1.1" 404 146
::ffff:127.0.0.1 - - [25/Aug/2018:02:01:05 +0000] "GET /get/nothing HTTP/1.1" 404 18
Format:
:method :url :status :response-time ms - :res[content-length]
Example:
GET /get/cat 200 3.632 ms - 6
POST /post/cat/animal 200 0.580 ms - 2
GET /get/cat 200 0.273 ms - 6
GET /nowhere 404 3.434 ms - 146
GET /get/nothing 404 0.244 ms - 18
Format:
:remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] ":referrer" ":user-agent"
Example:
::ffff:127.0.0.1 - - [25/Aug/2018:02:03:37 +0000] "GET /get/cat HTTP/1.1" 200 6 "-" "curl/7.35.0"
::ffff:127.0.0.1 - - [25/Aug/2018:02:03:40 +0000] "POST /post/cat/animal HTTP/1.1" 200 2 "-" "curl/7.35.0"
::ffff:127.0.0.1 - - [25/Aug/2018:02:03:47 +0000] "GET /get/cat HTTP/1.1" 200 6 "-" "curl/7.35.0"
::ffff:127.0.0.1 - - [25/Aug/2018:02:03:52 +0000] "GET /nowhere HTTP/1.1" 404 146 "-" "curl/7.35.0"
::ffff:127.0.0.1 - - [25/Aug/2018:02:03:54 +0000] "GET /get/nothing HTTP/1.1" 404 18 "-" "curl/7.35.0"