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: CHANGELOG-3.4.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,8 @@ See [security doc](https://github.com/coreos/etcd/blob/master/Documentation/op-g
172
172
- Main motivation is to promote automated etcd monitoring, rather than looking back server logs when it starts breaking. Future development will make etcd log as few as possible, and make etcd easier to monitor with metrics and alerts.
173
173
-`etcd --logger=capnslog --log-outputs=default` is the default setting and same as previous etcd server logging format.
174
174
-`etcd --logger=zap --log-outputs=default` is not supported when `--logger=zap`.
175
-
- Use `etcd --logger=zap --log-outputs=systemd/journal` to send logs to the local systemd journal.
175
+
- Instead, use `--logger=zap --log-outputs=stderr`.
176
+
- Or, use `etcd --logger=zap --log-outputs=systemd/journal` to send logs to the local systemd journal.
176
177
- Previously, if etcd parent process ID (PPID) is 1 (e.g. run with systemd), `etcd --logger=capnslog --log-outputs=default` redirects server logs to local systemd journal. And if write to journald fails, it writes to `os.Stderr` as a fallback.
177
178
- However, even with PPID 1, it can fail to dial systemd journal (e.g. run embedded etcd with Docker container). Then, [every single log write will fail](https://github.com/coreos/etcd/pull/9729) and fall back to `os.Stderr`, which is inefficient.
178
179
- To avoid this problem, systemd journal logging must be configured manually.
@@ -215,7 +216,7 @@ See [security doc](https://github.com/coreos/etcd/blob/master/Documentation/op-g
215
216
- e.g. `"etcdserver: no leader", "NOSPACE", "CORRUPT"`
216
217
- Add [`dbSizeInUse` field to `etcdserverpb.StatusResponse`](https://github.com/coreos/etcd/pull/9256) for actual DB size after compaction.
217
218
218
-
Note: **v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `etcd --logger=zap` will the default. **v3.5 will deprecate `[CLIENT-URL]/config/local/log` endpoint.**
219
+
Note: **v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `etcd --logger=zap --log-outputs=stderr` will the default. **v3.5 will deprecate `[CLIENT-URL]/config/local/log` endpoint.**
-`curl -L http://localhost:2379/v3beta/kv/put -X POST -d '{"key": "Zm9v", "value": "YmFy"}'` does work in v3.5. Use `curl -L http://localhost:2379/v3/kv/put -X POST -d '{"key": "Zm9v", "value": "YmFy"}'` instead.
15
15
-**`etcd --log-output` flag has been deprecated.** Use **`etcd --log-outputs`** instead.
16
-
-**`etcd --logger=zap`** is now the default.
16
+
-**`etcd --logger=zap --log-outputs=stderr`** is now the default.
17
17
-**`etcd --logger=capnslog` flag has been deprecated.**
18
18
-**`etcd --logger=zap --log-outputs=default` flag value is not supported.**.
19
-
- Use `etcd --logger=zap --log-outputs=systemd/journal` to send logs to the local systemd journal.
19
+
- Instead, use `--logger=zap --log-outputs=stderr`.
20
+
- Or, use `etcd --logger=zap --log-outputs=systemd/journal` to send logs to the local systemd journal.
20
21
- Previously, if etcd parent process ID (PPID) is 1 (e.g. run with systemd), `etcd --logger=capnslog --log-outputs=default` redirects server logs to local systemd journal. And if write to journald fails, it writes to `os.Stderr` as a fallback.
21
22
- However, even with PPID 1, it can fail to dial systemd journal (e.g. run embedded etcd with Docker container). Then, [every single log write will fail](https://github.com/coreos/etcd/pull/9729) and fall back to `os.Stderr`, which is inefficient.
22
23
- To avoid this problem, systemd journal logging must be configured manually.
23
24
-**`etcd --log-outputs=stderr`** is now the default.
24
-
-**`etcd --log-package-levels` flag for `capnslog` has been deprecated.** Now, **`etcd --logger=zap`** is the default.
25
+
-**`etcd --log-package-levels` flag for `capnslog` has been deprecated.** Now, **`etcd --logger=zap --log-outputs=stderr`** is the default.
25
26
-**`[CLIENT-URL]/config/local/log` endpoint has been deprecated, as is `etcd --log-package-levels` flag.**
Copy file name to clipboardexpand all lines: Documentation/upgrades/upgrade_3_4.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,15 @@ Rename [`etcd --log-output` to `--log-outputs`](https://github.com/coreos/etcd/p
33
33
**`etcd --log-output`** will be deprecated in v3.5. **`etcd --logger=capnslog` will be deprecated in v3.5**.
34
34
35
35
```diff
36
-
-etcd --log-outputstderr
37
-
+etcd --log-outputsstderr
36
+
-etcd --log-output=stderr
37
+
+etcd --log-outputs=stderr
38
38
39
39
+# to write logs to stderr and a.log file at the same time
40
-
+# only "--loggerzap" supports multiple writers
41
-
+etcd --loggerzap --log-outputsstderr,a.log
40
+
+# only "--logger=zap" supports multiple writers
41
+
+etcd --logger=zap --log-outputs=stderr,a.log
42
42
```
43
43
44
-
v3.4 adds `etcd --loggerzap` support for structured logging and multiple log outputs. Main motivation is to promote automated etcd monitoring, rather than looking back server logs when it starts breaking. Future development will make etcd log as few as possible, and make etcd easier to monitor with metrics and alerts. **`etcd --logger=capnslog` will be deprecated in v3.5**.
44
+
v3.4 adds `etcd --logger=zap --log-outputs=stderr` support for structured logging and multiple log outputs. Main motivation is to promote automated etcd monitoring, rather than looking back server logs when it starts breaking. Future development will make etcd log as few as possible, and make etcd easier to monitor with metrics and alerts. **`etcd --logger=capnslog` will be deprecated in v3.5**.
45
45
46
46
#### Changed `log-outputs` field type in `etcd --config-file` to `[]string`
**v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `etcd --logger=zap` will the default. **v3.5 will deprecate `[CLIENT-URL]/config/local/log` endpoint.**
70
+
**v3.5 will deprecate `etcd --log-package-levels` flag for `capnslog`**; `etcd --logger=zap --log-outputs=stderr` will the default. **v3.5 will deprecate `[CLIENT-URL]/config/local/log` endpoint.**
71
71
72
72
#### Deprecated `pkg/transport.TLSInfo.CAFile` field
Copy file name to clipboardexpand all lines: Documentation/upgrades/upgrade_3_5.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ v3.4 defaults to `--logger=zap` in order to support multiple log outputs and str
19
19
**`etcd --logger=capnslog` has been deprecated in v3.5**, and now `--logger=zap` is the default.
20
20
21
21
```diff
22
-
-etcd --loggercapnslog
23
-
+etcd --loggerzap --log-outputsstderr
22
+
-etcd --logger=capnslog
23
+
+etcd --logger=zap --log-outputs=stderr
24
24
25
25
+# to write logs to stderr and a.log file at the same time
26
-
+etcd --loggerzap --log-outputsstderr,a.log
26
+
+etcd --logger=zap --log-outputs=stderr,a.log
27
27
```
28
28
29
-
TODO(add more monitoring guides); v3.4 adds `etcd --loggerzap` support for structured logging and multiple log outputs. Main motivation is to promote automated etcd monitoring, rather than looking back server logs when it starts breaking. Future development will make etcd log as few as possible, and make etcd easier to monitor with metrics and alerts. **`etcd --logger=capnslog` will be deprecated in v3.5.**
29
+
TODO(add more monitoring guides); v3.4 adds `etcd --logger=zap` support for structured logging and multiple log outputs. Main motivation is to promote automated etcd monitoring, rather than looking back server logs when it starts breaking. Future development will make etcd log as few as possible, and make etcd easier to monitor with metrics and alerts. **`etcd --logger=capnslog` will be deprecated in v3.5.**
30
30
31
31
#### Deprecated in `etcd --log-output`
32
32
@@ -35,8 +35,8 @@ v3.4 renamed [`etcd --log-output` to `--log-outputs`](https://github.com/coreos/
35
35
**`etcd --log-output` has been deprecated in v3.5.**
36
36
37
37
```diff
38
-
-etcd --log-outputstderr
39
-
+etcd --log-outputsstderr
38
+
-etcd --log-output=stderr
39
+
+etcd --log-outputs=stderr
40
40
```
41
41
42
42
#### Deprecated `etcd --log-package-levels`
@@ -47,7 +47,7 @@ Now, **`etcd --logger=zap`** is the default.
0 commit comments