Details

    • Type: Task
    • Status: Closed
    • 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.

        Gliffy Diagrams

          Attachments

            Activity

            Show
            holyfoot Alexey Botchkov added a comment - Patch submitted: http://lists.askmonty.org/pipermail/commits/2012-March/003102.html
            Show
            holyfoot Alexey Botchkov added a comment - Modified patch: http://lists.askmonty.org/pipermail/commits/2012-March/003120.html
            Hide
            serg Sergei Golubchik added a comment -

            pushed

            Show
            serg Sergei Golubchik added a comment - pushed

              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:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h