So I am using IIS and using a single IIS Site for an umbraco install, which has multiple sites/domains in the one umbraco installation. Therefore, i have 1 single iis log file per day for the umbraco installation.
Some domains are going through a load balancer and use x-forwarded-for, but other domains in the same log file do not…
If i use mapping in the import_logs ( --w3c-map-field X-Forwarded-For=c-ip ) it works for the records that have X-forwarded-for values, but records that do not get imported with 0.0.0.0.
Does anyone have any advice on how I could use x-forwarded-for only if a value exists or only if the c-ip is in a specific list? or any other ideas?
Thanks in advance.