Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4917

Trying to WIPE_FIELD_VALUE on some fields breaks logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 7.1.0
    • Logging
    • None

    Description

      If you setup a LogFilter with an Action of "WIPE_FIELD_VALUE" on cqtx it breaks logging and no lines are logged to the LogObject that uses that filter.

      In the example below if remove_access_token_cquuc is used it works correctly. remove_access_token_cqtx makes no lines be logged.

      <LogFilter>
      <Name = "remove_access_token_cquuc" />
      <Condition = "%<cquuc> CONTAIN access_token" />
      <Action = "WIPE_FIELD_VALUE" />
      </LogFilter>
      <LogFilter>
      <Name = "remove_access_token_cqtx" />
      <Condition = "%<cqtx> CONTAIN access_token" />
      <Action = "WIPE_FIELD_VALUE" />
      </LogFilter>
      <LogFormat>
      <Name = "b_json" />
      <Format = "{\"chi\":\"%<chi>\",\"chp\":\"%<chp>\",\"caun\":\"%<caun>\",\"cqtn\":\"%<cqtn>\",\"cqhm\":\"%<cqhm>\",\"cquuc\":\"%<cquuc>\",\"cqtx\":\"%<cqtx>\",\"shi\":\"%<shi>\",\"pssc\":\"%<pssc>\",\"pscl\":%<pscl>,\"sssc\":\"%<sssc>\",\"sscl\":%<sscl>,\"cqbl\":%<cqbl>,\"pqbl\":%<pqbl>,\"cqhl\":%<cqhl>,\"pshl\":%<pshl>,\"pqhl\":%<pqhl>,\"sshl\":%<sshl>,\"ttms\":%<ttms>,\"phr\":\"%<phr>\",\"cfsc\":\"%<cfsc>\",\"pfsc\":\"%<pfsc>\",\"crc\":\"%<crc>\",\"cquuh\":\"%<cquuh>\",\"sshcl\":\"%<

      {Content-Length}ssh>\",\"pshce\":\"%<{Content-Encoding}psh>\",\"cqhcl\":\"%<{Content-Length}

      cqh>\"}" />
      </LogFormat>
      <LogObject>
      <Format = "b_json" />
      <Filename = "b_json" />
      <Filters = "remove_healthcheck,remove_access_token_cqtx" />
      </LogObject>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pdm Phillip Moore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: