Question: how to add xff header?
Answer: Start IIS Manager, then on the Connections pane on the left, click the appropriate website where you want to enable XFF logging. ... 
From the Home page, double-click Logging.
From the Log File section, click Select Fields.
From the bottom left corner, click Add Field.