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);
}
}
}
# 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: