I have a third-party go based app that is writing logs to stderr. Even though the log message is written as an INFO message stackdriver classifies it as ERROR because the log message is written to stderr (which seems to be default for golang logger).
Below is an example of an INFO message, but logged as ERROR
textPayload: "2022-04-05T16:41:38.369Z INFO controller.CertificateRequest CertificateRequest is Ready, ignoring. {"certificaterequest": "elasticsearch/es-http-tls-trs4t", "cr": {"namespace": "elasticsearch", "name": "es-http-tls-trs4t"}} "
Is it possible reclassify log messages based on payload tags?
I would like to classify above message as an Info rather than error so my logging alerts doesn't go crazy