Export Dashboard logs as .txt or .csv
complete
Eric Liu
I can search application and request logs using the built-in log explorer in the Dashboard.
However, I would like the ability to export the logs without needing an external provider (e.g., log streams). I want to export a subset of filtered logs to a static file for offline analysis.
There should be two export formats:
- Plain text file: pretty much what I see in the UI
- CSV file: structured data, where there are columns for log level, status code, HTTP method, request ID, etc..
Timestamps in exported logs should also be in UTC, not localized.
Log In
k
kate
complete
The Render CLI can now pipe logs to a file in text format! Run 'render logs --help' to learn more. You can follow these instructions to install the CLI: https://render.com/docs/cli
A
Aubrey
kate awesome!!
r
robdimarco
Merged in a post:
Improving Log with "download button"
F
Fantomix Hosting
Sometime Log not show everything... in these cases is a good idea to have a "download log in a file"
C
Craig
I'm surprised and disappointed that this isn't already a feature. It's pretty straight-forward to add a download link, and common to most apps that have a web UI for logs.
The web UI is fine for the basics, but very limited compared to all the UNIX tools like grep, sed, awk, etc.
For example, I've recently been looking through logs, and my search term includes a double quote. The web UI doesn't support that. Grep also allows me to quickly search for regular expressions that the UI can't do. I had to manually scroll through the web UI until I got all the entries to copy and paste into a file.
CSV would be useful, but of the 2, plain text would be
much
more useful.