How does stop logging confirm the severity of the recording?

I recently started using stackdriver logging on my Kubernetes cluster. The service registers the json payload. In the stddriver protocol, I see that the json payload is being processed correctly, but everything has the severity of “ERROR”. This is not intended. Most of these logs are not errors. They also do not contain error fields or similar fields. Is there any way to tell stackdriver how to determine the severity of a log entry received from a logging agent in quaternets? Or do I need to somehow change my structured log output to make it more understandable?

Thanks in advance.

+6
source share
1 answer

If you put a field severityin your JSON record, the Stackdriver registry agent should make this a serious record. Otherwise, it compresses the ERROR codes for stderrand INFO codes for stdout(for Kubernetes logs).

0
source

Source: https://habr.com/ru/post/1016296/


All Articles