Skip to content

log rotation config is not working #18591

Answered by jbml
amitpatel-airlinq asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, as stated in https://etcd.io/docs/v3.5/op-guide/configuration/#logging:

If you provide a configuration file all command-line flags and environment variables are ignored.

Which means that in the way you start your etcd server:
sh > /usr/bin/etcd --config-file=/opt/Airlinq/etcd/etcd.conf.yml --enable-log-rotation=true --log-rotation-config-json="/opt/Airlinq/etcd/etcd-log-rotation.json" --log-outputs="/opt/Airlinq/etcd/logs/etcd.log"

all command line options are ignored, and the command boils down to:
sh > /usr/bin/etcd --config-file=/opt/Airlinq/etcd/etcd.conf.yml

And when you execute that, you'll see that, as expected, you get the same error you reported:
error unmarshalin…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@amitpatel-airlinq
Comment options

@amitpatel-airlinq
Comment options

Answer selected by ivanvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #18586 on September 15, 2024 20:54.