View raw structured JSON logs

Haven't checked my service in a while and saw that there is a new observability related update for exploring logs which is awesome! Now, the problem is that since I was emitting structured JSON logs, it doesn't show me the stuff that I want to anymore unless I look at the attributes in the log explorer for each log. When I previously saw something like
{ "msg": "Served", "status": 200, "path": "/foo/bar" }
{ "msg": "Served", "status": 200, "path": "/foo/bar" }
Now I see
Served
Served
It would be nice to be able to have a raw log view. If not, I think I'll have to change my logging.
Solution:
clicking the plus icon to the left of the log line is how you would view the log attributes
No description
Jump to solution
9 Replies
Percy
Percy9mo ago
Project ID: d503f027-5417-4cc6-88cb-aee455282920
SaxyPandaBear
SaxyPandaBear9mo ago
d503f027-5417-4cc6-88cb-aee455282920
Solution
Brody
Brody9mo ago
clicking the plus icon to the left of the log line is how you would view the log attributes
No description
Brody
Brody9mo ago
greg has plans to also display some of the most common logged attributes in columns so you dont have to go into each log
SaxyPandaBear
SaxyPandaBear9mo ago
Appreciate the response. Yeah I see that now. It'd be nice to have an option to just see the raw structured log, but seems like I'll just have to live with this for now
Brody
Brody9mo ago
the api doesnt even return a raw log line when it detects a log line with a "message" or "msg" attribute you could switch to text based structured logs for now?
SaxyPandaBear
SaxyPandaBear9mo ago
Ahh that'd do it. No worries. The new UX for logs is great so I won't make a big stink about it
Brody
Brody9mo ago
no no, all feedback is valuable
SaxyPandaBear
SaxyPandaBear9mo ago
I could, yeah. It's a pet project so it's by no means critical, which is why this update flew under my radar for so long