Logging transaction ID in a proxy chain

book

Article ID: 168486

calendar_today

Updated On:

Products

Advanced Secure Gateway Software - ASG ProxySG Software - SGOS

Issue/Introduction

You want to forward the transaction ID from the child proxy to the parent proxy for correlation on the transaction IDs.

Resolution

1. You must create a web access policy with a Control Request Header action object:

  • Header Type: Custom
  • Header Name: X-transaction-id
  • Set value: $(transaction.id)

2. You will want to use another Control Request Header action object on the parent proxy to suppress the same header so it is not forwarded to the origin content server (OCS).

3. You will also want your access log format on the parent proxy to include:

request.header.X-transaction-id