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

Error when using ascii logging format: There are more field markers than fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.2, 4.1.2
    • 7.2.0
    • Logging

    Description

      I noticed the following on an ats 4.0.2 host in diags.log:

      [Nov 20 15:08:29.627] Server {0x2b732fe9c700} NOTE: There are more field markers than fields; cannot process log entry

      It only happens about every fifth time you start ATS. That message will fill diags.log and nothing is written to squid.log

      I then upgraded to 4.1.1 as a test, and the same thing happened except there was additional error information:

      [Nov 20 15:40:53.656] Server {0x2b568aac8700} NOTE: There are more field markers than fields; cannot process log entry
      [Nov 20 15:40:53.656] Server {0x2b568aac8700} ERROR: Failed to convert LogBuffer to ascii, have dropped (232) bytes.

      The convert to ascii message tipped me off that this could be the source of the problem. Up until now we've been using the binary log format, so perhaps this is why I didn't run into this in the past. I then changed the log format back to binary, and I was unable to reproduce the issue - so it seems related to ascii logging.

      Here is our logs_xml.config:

      <LogFormat>
        <Name = "ats_generic_config"/>
        <Format = "%<cqtq> %<ttms> %<chi> %<crc> %<pssc> %<psql> %<cqhm> %<cquc> %<caun> %<phr>/%<pqsn> %<psct> %<cquuc> f1 f2 f3 f4"/>
      </LogFormat>
      
      <LogObject>
          <Format = "ats_generic_config"/>
          <Filename = "squid"/>
          <Mode = "ascii"/>
      </LogObject>
      

      Attachments

        Activity

          People

            amc Alan M. Carroll
            dcarlin David Carlin
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated: