-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logging: expose more syslog options #15545
logging: expose more syslog options #15545
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
a0fa24c
to
dfdbf22
Compare
Expose more syslog options via --log-opt to make syslog more configurable. Before this commit we can only log to the default facility `kern` of localhost, which may pollute kernel log file. Also, add a fatal out logic to cilium-agent, cilium-operator and cilium-health, if an error is returned from SetupLogging. The following option keys are added: syslog.network syslog.address syslog.facility syslog.severity syslog.tag configmap example for syslog driver: {"syslog.level":"info","syslog.facility":"local5","syslog.tag":"cilium-agent"} Signed-off-by: Jaff Cheng <jaff.cheng.sh@gmail.com>
dfdbf22
to
bdcdcd5
Compare
Runtime CI failed as I missed the newly added Alibaba operator cmdref, rebased and updated |
test-me-please |
For some reason jenkins didn't report the status. I've check and all have passed, only one flake found #15572. Merging... |
(FYI, that flake is actually #15455.) |
Expose more syslog options via --log-opt to make syslog more configurable.
Before this commit we can only log to the default facility
kern
of localhost, which may pollute kernel log file.
Also, add a fatal out logic to cilium-agent, cilium-operator and cilium-health,
if an error is returned from SetupLogging.
The following option keys are added:
configmap example for syslog driver: {"syslog.level":"info","syslog.facility":"local5","syslog.tag":"cilium-agent"}
Signed-off-by: Jaff Cheng jaff.cheng.sh@gmail.com