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

logstats: add ability to report stats per user instead of host

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.1.0
    • Logging, Tools
    • None

    Description

      We would like to enhance traffic_logstats with the ability to report stats per user instead of host (from the URI).

      Currently the traffic_logstats expects a binary squid log format defined in the following ATS log config and aggregates and reports stats per the authority part of the URI (host:port in an usual use-case)

      <Format = "%<cqtq> %<ttms> %<chi> %<crc>/%<pssc> %<psql> %<cqhm> %<cquc> %<caun> %<phr>/%<pqsn> %<psct>"/>
      

      It would be useful for our use-case to be able aggregate and report stats based on the 8th squid log field which is an username of the authenticated client %<caun>).

      In our use-case we need to aggregate and report stats per CDN-customer-specific-tag.

      For example the new functionality would allow us to replace %caun with a random header content %<{@CustomerTagHeader}cqh> and report stats per CDN customer by using a new command line parameter --report_per_user w/o adding extra fields to the binary squid format log expected by traffic_logstats and keep it backward compatible with the previous version.

      Attachments

        Activity

          People

            gancho Gancho Tenev
            gancho Gancho Tenev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 10m
                3h 10m