Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15520

Logging with --syslog results in less accuracy due to lack of mongodb timestamp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 2.6.4
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
      None
    • Environment:
      *nix
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      run mongod --syslog

      Show
      run mongod --syslog

      Description

      MongoDb 2.6.0 - 2.6.4 logging seems to have removed the timestamp from the syslog message.

      As a result the default syslog using RFC3339 loses granularity on time stamps :

      MongoDB 2.4.10

      Oct  3 15:10:32 jimoleary.local mongod.27017[56077]: Fri Oct  3 15:10:32.309 [initandlisten] ERROR: listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:27017
      Oct  3 15:10:32 jimoleary.local mongod.27017[56077]: Fri Oct  3 15:10:32.309 [websvr] ERROR: listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:28017
      Oct  3 15:10:32 jimoleary.local mongod.27017[56077]: Fri Oct  3 15:10:32.310 [websvr] ERROR:   addr already in use
      Oct  3 15:10:32 jimoleary.local mongod.27017[56077]: Fri Oct  3 15:10:32.310 [initandlisten] ERROR:   addr already in use

      MongoDB 2.6.0

      Oct  3 15:12:50 jimoleary.local mongod.27017[56182]: [initandlisten] listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:27017
      Oct  3 15:12:50 jimoleary.local mongod.27017[56182]: [initandlisten]   addr already in use

        Attachments

          Activity

            People

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            jim.oleary James O'Leary
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: