How do I stop the ProxySG from outputting certain information to the main access log?
search cancel

How do I stop the ProxySG from outputting certain information to the main access log?

book

Article ID: 166200

calendar_today

Updated On:

Products

Reporter ProxySG Software - SGOS

Issue/Introduction

Using policy, modify or suppress any element that the ProxySG writes to the log. In some countries, privacy concerns exist wherein the ProxySG administrator must configure a rule to suppress certain information.  This is done with a policy object: Override Access Logging Field. This object (and its CPL equivalent) are detailed in the Configuration and Management Guide for each SGOS version.


The following local policy suppresses the username, URL path details, and referrer header from an HTTP request when that request is saved to the 'main' access log:

<Proxy>
log.rewrite."cs(Referer)"[main]("$(cs(Host))") log.suppress."cs(Referer)"[main](no) log.suppress.cs-uri-path[main](yes) log.suppress.cs-username[main](yes)

Please see How do I add CPL to a local policy file on the ProxySG for instructions on working with local policy and CPL.