Uploaded image for project: 'Percona Server for MongoDB'
  1. Percona Server for MongoDB
  2. PSMDB-247

mongod --help output does not list allowed AuditLog formats

    XMLWordPrintable

    Details

    • Type: Admin & Maintenance Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.6.8-2.0
    • Fix Version/s: 4.0.5-2, 4.1.0, 3.6.10-3.0, 3.4.18-2.16
    • Component/s: Core
    • Labels:
      None

      Description

      The --help output for PSMDB 3.6.8 and below list the following for AuditLog:

      Audit Options:
        --auditDestination arg                Output type: enables auditing 
                                              functionality
        --auditFormat arg                     Output format
        --auditFilter arg                     JSON query filter on events, users, 
                                              etc.
        --auditPath arg                       Event destination file path and name 

      Notice that no allowed formats are listed, leaving the user to guess.

      I believe the available formats are (Igor Solodovnikov can confirm):

      1. JSON
      2. BSON

      Please update the --help output to list the available auditLog formats, an example:

      Audit Options:
        --auditDestination arg                Output type: enables auditing 
                                              functionality
        --auditFormat arg                     Output format (JSON or BSON)
        --auditFilter arg                     JSON query filter on events, users, 
                                              etc.
        --auditPath arg                       Event destination file path and name 

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                igor.solodovnikov Igor Solodovnikov
                Reporter:
                tim.vaillancourt Tim Vaillancourt (Inactive)
              • 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 - 1 hour, 5 minutes
                  1h 5m