0

Currently I use the ats_generic_config.custom_log_format='url=%<cquuc>' to log the request url. The result will be like 'url=http://example.com:4080/abc?aa=AA&bb=BB&cc=CC'. However, the cc parameter contains some sensitive data and I want to strip this field while keep other parameters untouched when logging. I want the logging result to be like 'url=http:ABC.com:4080/abc?aa=AA&bb=BB'. Is there any ATS setting can achieve this result?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Hard Mode
  • 45
  • 2
  • 6

1 Answers1

0

That wipe filter's function:

ats_generic_config.custom_log_format='url=%<cquuc>'
nocc=filter.wipe('cc') 
log.ascii {
  Format = ats_generic_config.custom_log_format,
  Filename = 'mylogname',
  Filters = { nocc },
}
Miles Libbey
  • 1,583
  • 2
  • 10
  • 10