File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ mongodb_storage_prealloc: true # Enable data file preallocatio
53
53
# # If you specify 'file', you must also specify mongodb_systemlog_path.
54
54
mongodb_systemlog_destination : " file"
55
55
mongodb_systemlog_logappend : true # Append to logpath instead of over-writing
56
+ mongodb_systemlog_logrotate : " rename" # Logrotation behavior
56
57
mongodb_systemlog_path : /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
57
58
58
59
# # replication Options
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ systemLog:
50
50
destination: {{ mongodb_systemlog_destination }}
51
51
{% if mongodb_systemlog_destination == 'file' -%}
52
52
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
53
+ logRotate: {{ mongodb_systemlog_logrotate }}
53
54
path: {{ mongodb_systemlog_path }}
54
55
{% endif %}
55
56
Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ systemLog:
38
38
destination: {{ mongodb_systemlog_destination }}
39
39
{% if mongodb_systemlog_destination == 'file' -%}
40
40
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
41
+ logRotate: {{ mongodb_systemlog_logrotate }}
41
42
path: {{ mongodb_systemlog_path }}
42
43
{% endif -%}
You can’t perform that action at this time.
0 commit comments