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
so all headers are included instead of only 'Host' header
With :
file:
enabled: true # Is the reporter enabled or not (default to false)
fileName: ${gravitee.home}/logs/%s-yyyy_mm_dd
output: json # Can be csv, json, elasticsearch or message_pack
request: # (Following mapping section is also available for other types: node, health-check, log)
exclude: # Can be a wildcard (ie '*') to exclude all fields (supports json path)
- log.clientRequest.headers.Host
# include: # Only if exclude is used (supports json path)
request.json is empty;
With :
file:
enabled: true # Is the reporter enabled or not (default to false)
fileName: ${gravitee.home}/logs/%s-yyyy_mm_dd
output: json # Can be csv, json, elasticsearch or message_pack
request: # (Following mapping section is also available for other types: node, health-check, log)
exclude: # Can be a wildcard (ie '*') to exclude all fields (supports json path)
- log.clientRequest.headers.Host
include: # Only if exclude is used (supports json path)
- '*'
phiz71
changed the title
[APIM] File reporter headers format feature not fully implemented
[Reporters] File and TCP reporters - headers format feature not fully implemented
Aug 17, 2022
💥 Describe the bug
When File reporter is set, you can not include/exclude/rename which elements of the headers element to be used in the report.
🌄 To Reproduce
Steps to reproduce the behaviour:
with :
we get on the request.json file :
so all headers are included instead of only 'Host' header
With :
request.json is empty;
With :
request.json will still contain 'host" header
🌈 Expected behaviour
It is expected to include/remove/rename only the header that has been set in the configuration.
💻 Desktop:
Please complete the following information:
Which other features may be impacted by this fix. This could be populated after fix
What are the impacted versions?
🔗 Dependencies
Link a story or other related things...
The text was updated successfully, but these errors were encountered: