Skip to content
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

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

jaffcheng
Copy link
Contributor

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

Expose more syslog options

@jaffcheng jaffcheng requested a review from a team April 2, 2021 11:55
@jaffcheng jaffcheng requested a review from a team as a code owner April 2, 2021 11:55
@jaffcheng jaffcheng requested a review from a team April 2, 2021 11:55
@jaffcheng jaffcheng requested a review from a team as a code owner April 2, 2021 11:55
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 2, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Apr 2, 2021
@jaffcheng jaffcheng requested a review from nebril April 2, 2021 11:55
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@twpayne twpayne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@jaffcheng jaffcheng force-pushed the expose-more-syslog-options-upstream branch from a0fa24c to dfdbf22 Compare April 7, 2021 04:41
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>
@jaffcheng jaffcheng force-pushed the expose-more-syslog-options-upstream branch from dfdbf22 to bdcdcd5 Compare April 7, 2021 04:42
@jaffcheng
Copy link
Contributor Author

test-me-please

Runtime CI failed as I missed the newly added Alibaba operator cmdref, rebased and updated

@pchaigno
Copy link
Member

pchaigno commented Apr 7, 2021

test-me-please

@nebril nebril added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Apr 7, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 7, 2021
@aanm
Copy link
Member

aanm commented Apr 7, 2021

For some reason jenkins didn't report the status. I've check and all have passed, only one flake found #15572. Merging...

@aanm aanm merged commit f6a5724 into cilium:master Apr 7, 2021
1.10.0 automation moved this from In progress to Done Apr 7, 2021
@jaffcheng jaffcheng deleted the expose-more-syslog-options-upstream branch April 8, 2021 03:39
@pchaigno
Copy link
Member

pchaigno commented Apr 8, 2021

(FYI, that flake is actually #15455.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

7 participants