fooinha / nginx-json-log

Highly configurable JSON format logging per Location - nginx logging module - aka. kasha 🍲
BSD 2-Clause "Simplified" License
42 stars 21 forks source link

ngx-http-log-json: variables #7

Closed fooinha closed 7 years ago

fooinha commented 7 years ago

module: variable $http_log_json_req_headers;

Creates a json object with all request headers.

Example:

"req": {
    "headers": {
        "Host": "localhost",
            "User-Agent": "curl/7.52.1",
            "Accept": "*/*"
    }
}
fooinha commented 7 years ago

8 has better implementation ...