[DOCS-8768] Configure auditing - log rotation is not accurate Created: 06/Sep/16  Updated: 30/Oct/23  Resolved: 16/Mar/23

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Alexander Marquardt Assignee: Ravind Kumar (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 46 weeks, 6 days ago
Story Points: 0.5

 Description   

At https://docs.mongodb.com/manual/tutorial/configure-auditing/, the following is stated:

The audit file rotates at the same time as the server log file.

.

I have verified that if log rotation is forced using kill -SIGUSR1 <mongod process id>, then both the audit file and the log file will be rotated at the same time. However, if the mongod process is restarted, then the mongod log file will be rotated, but the audit file will not be rotated.



 Comments   
Comment by Sarah Olson [ 16/Mar/23 ]

Closing this out on the grounds that:

  • Details of this request are significantly outdated. 
  • Our documentation has evolved substantially since this request was made. 

Based on this, closing as WON'T DO. Please don't hesitate to give me a shout or to reopen if you disagree.

Comment by Eric Milkie [ 06/Sep/16 ]

The startup behavior hasn't historically been considered a log "rotation", although it sure seems like it should be.
The documentation for the log startup behavior is covered under the "systemLog.logAppend" configuration flag. There is no equivalent auditing log option.
Perhaps we need to add an auditLog.logAppend option. In the meantime, I suppose we should change the auditing docs to say that the log is rotated when the system log is rotated via the command or the signal; at startup, the systemLog.logAppend option dictates what happens to the system log file only and not the audit log file.

Comment by Andreas Nilsson [ 06/Sep/16 ]

I honestly don't know, cc milkie schwerin

Generated at Thu Feb 08 07:56:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.