Skip to content

Commit 3c59b18

Browse files
kallimachoskay-kim
authored andcommitted
DOCS-11343 Add warning about incorrect syslog timestamps
1 parent a17a8d7 commit 3c59b18

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

source/includes/options-conf.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,14 @@ description: |
295295
296296
If you do not specify :setting:`systemLog.destination`, MongoDB sends
297297
all log output to standard output.
298+
299+
.. warning::
300+
301+
The ``syslog`` daemon generates timestamps when it logs a message, not
302+
when MongoDB issues the message. This can lead to misleading timestamps
303+
for log entries, especially when the system is under heavy load. We
304+
recommend using the ``file`` option for production systems to ensure
305+
accurate timestamps.
298306
---
299307
program: conf
300308
name: systemLog.timeStampFormat

source/includes/options-mongod.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,14 @@ description: |
305305
than to standard output or to a log file. , as with :option:`--logpath`.
306306
307307
The {{role}} option is not supported on Windows.
308+
309+
.. warning::
310+
311+
The ``syslog`` daemon generates timestamps when it logs a message, not
312+
when MongoDB issues the message. This can lead to misleading timestamps
313+
for log entries, especially when the system is under heavy load. We
314+
recommend using the :option:`--logpath` option for production systems to
315+
ensure accurate timestamps.
308316
optional: true
309317
---
310318
program: mongod

0 commit comments

Comments
 (0)