Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Fix Version/s: 5.5.22
    • Component/s: None
    • Labels:
      None

      Description

      quoting http://askmonty.org/worklog/?tid=177

      I want to log all or a sample of errors on the server side into a new log file
      (not general, error or slow query log) and into a file that can be rotated. In the
      facebook patch I added code to sample query errors into the slow query log using -
      -log-sample-error-rate:

      • when 0 do not sample
      • when 1 then log all errors
      • when > 1 then sample 1 of --log-sample-error-rate queries

      This should have:

      • query text
      • username
      • timestamp
      • database
      • errno
      • error text
      • client IP

      The log should support rotation and possibly auto-rotation when it reaches a
      certain size.

        Attachments

          Activity

            People

            • Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              ratzpo Rasmus Johansson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: