#support

Displaying Logs with Break Lines in UI

TLDR Einav raises issue regarding logs displaying as a single line in the UI. Ankit suggests raising an issue on GitHub for an easy fix.

Powered by Struct AI

1

Mar 07, 2023 (9 months ago)
Einav
Photo of md5-91ca81df2aac8327e33925ba75429e50
Einav
02:39 PM
Hi!
Currently the ui is showing a log that has break lines (\n) in one long line. is it possible to make it display multiple lines?

example
log body:
"[2023/03/07 14:33:35] [ info] inotify_fs_add(): inode=1537505 watch_fd=195 name=/var/log/containers/signoz-k8s-infra-otel-agent-57dls_logging_signoz-k8s-infra-otel-agent-dd4175ac2a39f9d058c056402bab1e7ec01b7f9f0b8dc3e5c68403724ff89b2f.log\n  File \"/usr/local/lib/python3.10/site-packages/flask/ctx.py\", line 350, in match_request\n    result = self.url_adapter.match(return_rule=True)\n  File \"/usr/local/lib/python3.10/site-packages/werkzeug/routing.py\", line 2041, in match\n    raise NotFound()"

log in ui:
Image 1 for Hi!
Currently the ui is showing a log that has break lines (\n) in one long line. is it possible to make it display multiple lines?

example
log body:
```"[2023/03/07 14:33:35] [ info] inotify_fs_add(): inode=1537505 watch_fd=195 name=/var/log/containers/signoz-k8s-infra-otel-agent-57dls_logging_signoz-k8s-infra-otel-agent-dd4175ac2a39f9d058c056402bab1e7ec01b7f9f0b8dc3e5c68403724ff89b2f.log\n  File \"/usr/local/lib/python3.10/site-packages/flask/ctx.py\", line 350, in match_request\n    result = self.url_adapter.match(return_rule=True)\n  File \"/usr/local/lib/python3.10/site-packages/werkzeug/routing.py\", line 2041, in match\n    raise NotFound()"```
log in ui:
Ankit
Photo of md5-dbe7088320fe1d922707613e02f3420d
Ankit
02:42 PM
makes sense..can you raise an issue for this? should be an easy fix