Skip to content

Overriding remote_host with "X-Forwarded-For" header - Access #820

Answered by brenuart
WesPr asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Wes,

I'm sorry but there is no such option at the moment but you can always implement a custom JsonProvider to process the request headers yourself. You can start with RemoteHostJsonProvider as an example (no need to implement the FieldNamesAware interface). See https://github.com/logfellow/logstash-logback-encoder#custom-json-provider for more information.

Hope this helps.
Do not hesitate to come back here if you need more information.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WesPr
Comment options

Answer selected by WesPr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants