]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve/http: add proxy related custom headers
authorVictor Julien <victor@inliniac.net>
Sat, 23 Feb 2019 18:27:22 +0000 (19:27 +0100)
committerVictor Julien <victor@inliniac.net>
Sun, 24 Feb 2019 19:00:55 +0000 (20:00 +0100)
src/output-json-http.c

index 7bb55ace109193e692f19b1ecd7268de32fcbbe1..f167b27b4cdf38bcead13c743ee5f2e9b94ee7f0 100644 (file)
@@ -134,6 +134,9 @@ typedef enum {
     HTTP_FIELD_VARY,
     HTTP_FIELD_WARNING,
     HTTP_FIELD_WWW_AUTHENTICATE,
+    HTTP_FIELD_TRUE_CLIENT_IP,
+    HTTP_FIELD_ORG_SRC_IP,
+    HTTP_FIELD_X_BLUECOAT_VIA,
     HTTP_FIELD_SIZE
 } HttpField;
 
@@ -192,6 +195,9 @@ struct {
     { "vary", "vary", 0 },
     { "warning", "warning", 0 },
     { "www_authenticate", "www-authenticate", 0 },
+    { "true_client_ip", "true-client-ip", LOG_HTTP_REQUEST },
+    { "org_src_ip", "org-src-ip", LOG_HTTP_REQUEST },
+    { "x_bluecoat_via", "x-bluecoat-via", LOG_HTTP_REQUEST },
 };
 
 static void JsonHttpLogJSONBasic(json_t *js, htp_tx_t *tx)