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
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,27 @@ using the same unique identificator.
176
176
177
177
String can contain variables.
178
178
179
+
# Format Variables
180
+
ModSecurity-nginx provide times variables for particular phases that you can uses in nginx *log_format*:
181
+
182
+
*$modsecurity_req_headers_phase_time*
183
+
request headers processing time in seconds with a microseconds resolution; time elapsed for processing headers in first phase by ModSecurity
184
+
*$modsecurity_req_body_phase_time*
185
+
request body processing time in seconds with a microseconds resolution; time elapsed for processing request body in second phase by ModSecurity
186
+
*$modsecurity_resp_headers_phase_time*
187
+
resposnse headers processing time in seconds with a microseconds resolution; time elapsed for processing response headers in third phase by ModSecurity
188
+
*$modsecurity_resp_body_phase_time*
189
+
response body processing time in seconds with a microseconds resolution; time elapsed for processing response body in fourth phase by ModSecurity
190
+
*$modsecurity_logging_phase_time*
191
+
logging processing time in seconds with a microseconds resolution; time elapsed for processing logging in fifth phase by ModSecurity
192
+
193
+
The following example show how to configure custom *log_format* with variables above and use them with custom *access.log*:
0 commit comments