Closed CrAcK75 closed 1 year ago
Unfortunately, it is not possible, however, this might help (as a workaround) but I'm not sure:
WithRequestHeader
enricher
{
"Serilog": {
"MinimumLevel": "Debug",
"Using": [ "Serilog.Enrichers.ClientInfo" ],
"Enrich": [
{
"Name": "WithClientIp",
"Args": {
"headerName": "CF-Connecting-IP"
}
},
{
"Name": "WithRequestHeader",
"Args": {
"headerName": "X-Forwarded-For"
}
},
{
"Name": "WithRequestHeader",
"Args": {
"headerName": "X-Real-IP"
}
}
],
}
}
it's all right now, thank you
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