yaml: clarify comment about dump-all-headers

Logs a warning if the value is unknown
Fixes #2810
pull/4436/head
Philippe Antoine 7 years ago committed by Victor Julien
parent f2117774f5
commit 4a2918e6b5

@ -643,6 +643,10 @@ static OutputInitResult OutputHttpLogInit(ConfNode *conf)
http_ctx->flags |= LOG_HTTP_REQ_HEADERS;
} else if (strcmp(all_headers, "response") == 0) {
http_ctx->flags |= LOG_HTTP_RES_HEADERS;
} else if (strcmp(all_headers, "none") != 0) {
SCLogWarning(SC_WARN_ANOMALY_CONFIG,
"unhandled value for dump-all-headers configuration : %s",
all_headers);
}
}
}

@ -194,9 +194,9 @@ outputs:
# custom allows additional http fields to be included in eve-log
# the example below adds three additional fields when uncommented
#custom: [Accept-Encoding, Accept-Language, Authorization]
# set this value to one among {both, request, response} to dump all
# http headers for every http request and/or response
# dump-all-headers: [both, request, response]
# set this value to one and only one among {both, request, response}
# to dump all http headers for every http request and/or response
# dump-all-headers: none
- dns:
# This configuration uses the new DNS logging format,
# the old configuration is still available:

Loading…
Cancel
Save