Can anyone suggest how to make stackdriver parse logs to json payload. Logs in stackdriver from application running in GKE are considered as textpayload, even if they are in json format. What are the points parser consider to mark log as textpayload or json payload?
Example in the below image the log message from application is in json with severity=error
. Still, it is considered a text payload. Also, severity is marked as INFO even if error message and error severity.
So how to update my logs so that they are treated as jsonpayload instead of a textpayload.