You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nginx modules for logging in custom json format - aka kasha (🍲)
4
4
@@ -20,7 +20,7 @@ It supports multiple output destinations with multiple formats for a location.
20
20
21
21
### Current version and limitations
22
22
23
-
Current version released is 0.0.7.
23
+
Current version released is 0.0.8.
24
24
25
25
Stream logging is only available when using nginx (>= 1.11.2).
26
26
@@ -80,17 +80,6 @@ For HTTP logging, if kafka output is used the value from $request_id nginx varia
80
80
81
81
The $request_id is only available for nginx (>=1.11.0).
82
82
83
-
84
-
#### Log HTTP Bad Requests
85
-
86
-
Nginx will short circuit response if the client sends a Bad Request. In that case, the log handler will not be run.
87
-
88
-
In order to, capture and log these requests we can define at server level, a format and output location for this requests.
89
-
90
-
The directives json_err_log_* (same suffixes as the directives for location logging), should be used for this case.
91
-
92
-
Additionally, the variable $http_json_err_log_req will be set with a base64 encodede string for the data sent from the client, until the limit set by **http_json_log_req_body_limit** is reached.
93
-
94
83
#### Example Configuration
95
84
96
85
@@ -229,6 +218,50 @@ To ease reading, it's shown here formatted with newlines.
229
218
230
219
```
231
220
221
+
#### Encoding operations
222
+
223
+
The value of key of type `string` can be encoded in 3 ways.
224
+
To change the encoding output this should be configured per output key by specifying the encoding after a "|" character.
225
+
For instance for `base64` output the key should be like this `key|base64`
226
+
227
+
The default encoding is *plain* when no encoding is supplied.
0 commit comments