Export Dashboard logs as .txt or .csv
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
r
robdimarco
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.