Adding a custom HTTP header information in Access-Log using ProxySG

book

Article ID: 169011

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Customer is using custom HTTP headers in request and/or response for their reverse proxy setup. They want to add the values of these header into access-log as one of the fields.

Resolution

This can be performed by using the field "request.x_header.HeaderName" or "response.x_header.HeaderName" in access-log format.

Eg:

request.x_header.X-Test

where "X-Test" is the custom request header used by in request