You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,21 +120,47 @@ Many role variables can also take their values from environment variables as wel
120
120
121
121
- Enable configuration of rsyslogd or syslog-ng on Linux. If disabled, Consul will still log to syslog if `consul_syslog_enable` is true, but the syslog daemon won't be configured to write Consul logs to their own logfile.
122
122
- Override with `CONSUL_CONFIGURE_SYSLOGD` environment variable
123
-
- Default Linux value: *true*
123
+
- Default Linux value: *false*
124
124
125
125
### `consul_log_path`
126
-
127
-
- Log path for use in rsyslogd configuration on Linux. Ignored if `consul_configure_syslogd` is false.
126
+
- If `consul_syslog_enable` is false
127
+
- Log path for use in [log_file or -log-file](https://www.consul.io/docs/agent/options.html#_log_file)
128
+
- If `consul_syslog_enable` is true
129
+
- Log path for use in rsyslogd configuration on Linux. Ignored if `consul_configure_syslogd` is false.
128
130
- Default Linux value: `/var/log/consul`
129
131
- Override with `CONSUL_LOG_PATH` environment variable
130
132
- Default Windows value: `C:\ProgramData\consul\log`
131
133
132
134
### `consul_log_file`
133
135
134
-
- Log file for use in rsyslogd configuration on Linux. Ignored if `consul_configure_syslogd` is false.
135
-
- Override with `CONSUL_LOG_FILE` environment variable
136
+
- If `consul_syslog_enable` is false
137
+
- Log file for use in [log_file or -log-file](https://www.consul.io/docs/agent/options.html#_log_file)
138
+
- If `consul_syslog_enable` is true
139
+
- Log file for use in rsyslogd configuration on Linux. Ignored if `consul_configure_syslogd` is false.
140
+
- Override with `CONSUL_LOG_FILE` environment variable
136
141
- Default Linux value: `consul.log`
137
142
143
+
### `consul_log_rotate_bytes`
144
+
145
+
- Log rotate bytes as defined in [log_rotate_bytes or -log-rotate-bytes](https://www.consul.io/docs/agent/options.html#_log_rotate_bytes)
146
+
- Override with `CONSUL_LOG_ROTATE_BYTES` environment variable
147
+
- Ignored if `consul_syslog_enable` is true
148
+
- Default value: 0
149
+
150
+
### `consul_log_rotate_duration`
151
+
152
+
- Log rotate bytes as defined in [log_rotate_duration or -log-rotate-duration](https://www.consul.io/docs/agent/options.html#_log_rotate_duration)
153
+
- Override with `CONSUL_LOG_ROTATE_DURATION` environment variable
154
+
- Ignored if `consul_syslog_enable` is true
155
+
- Default value: 24h
156
+
157
+
### `consul_log_rotate_max_files`
158
+
159
+
- Log rotate bytes as defined in [log_rotate_max_files or -log-rotate-max-files](https://www.consul.io/docs/agent/options.html#_log_rotate_max_files)
160
+
- Override with `CONSUL_LOG_ROTATE_MAX_FILES` environment variable
161
+
- Ignored if `consul_syslog_enable` is true
162
+
- Default value: 0
163
+
138
164
### `consul_syslog_facility`
139
165
140
166
- Syslog facility as defined in [syslog_facility](https://www.consul.io/docs/agent/options.html#syslog_facility)
@@ -273,7 +299,7 @@ consul_node_meta:
273
299
274
300
- Log to syslog as defined in [enable_syslog or -syslog](https://www.consul.io/docs/agent/options.html#_syslog)
275
301
- Override with `CONSUL_SYSLOG_ENABLE` environment variable
0 commit comments