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

Log messages showing as errors in Google Stackdriver #772

Closed
freddd opened this issue Nov 15, 2018 · 6 comments
Closed

Log messages showing as errors in Google Stackdriver #772

freddd opened this issue Nov 15, 2018 · 6 comments

Comments

@freddd
Copy link

freddd commented Nov 15, 2018

Hi,

If you deploy cert manager on GKE you get all the logs as errors becase logrus is by default piping all logs to stderr. Would be awesome if you could add a flag or pipe errors to stderr and the rest to stdout.

Reference:
sirupsen/logrus#403
Azure/open-service-broker-azure#25

Example (notice the icon as well as level=info but severity=ERROR):
skarmavbild 2018-11-15 kl 14 08 54

@freddd
Copy link
Author

freddd commented Nov 20, 2018

We are getting the same issue in datadog as well.

@mgazza
Copy link

mgazza commented Nov 27, 2018

I think it's interesting to note that other controllers are having similar issues reported.
fluxcd/flux#1491

@freddd freddd closed this as completed Feb 21, 2019
@morganwalker
Copy link

@freddd was there a resolution to this issue? I'm having the same issues with Datadog.

@freddd
Copy link
Author

freddd commented Jun 24, 2019

@morganwalker no, we "solved" it by creating a custom pipeline in Datadog.

@guitarrapc
Copy link
Contributor

guitarrapc commented Jan 7, 2020

thank you @freddd, just went well with custom pipeline on datadog log mangement.

For whom wonder how, here's my custom pipeline to use log message level as Datadog LogMagement's Level.

image

Parsing External Dns Message

external_dns_rule %{data::keyvalue}

image

Define level as the official log status

image

@yardensachs
Copy link

@guitarrapc Super helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants