serilog-contrib / serilog-enrichers-clientinfo

Enrich logs with client IP, correlation id and HTTP request headers.
MIT License
93 stars 20 forks source link

X-forwarded-for and CF-Connecting-IP #21

Closed CrAcK75 closed 1 year ago

CrAcK75 commented 1 year ago

Sorry in advance if I wrote something wrong but... is it possible to use both X-forwarded-for and CF-Connecting-IP or others? something like

"Args": {
          "xForwardHeaderName": [ "CF-Connecting-IP", "X-Forwarded-For", "X-Real-IP" ]
        }
mo-esmp commented 1 year ago

Unfortunately, it is not possible, however, this might help (as a workaround) but I'm not sure:

CrAcK75 commented 1 year ago

it's all right now, thank you