Spec discussion: new meltano log
CLI
#6850
Replies: 1 comment 3 replies
-
@aaronsteers Apologies for the delayed response here.
In thinking more on this one, I'm less a fan because it's trying to do too much.
I'd rather we add more to
Seems like here we'd also want to allow for filtering by either jobs or schedules - not sure how to do that either. As for the summary command, I think we'd want a different command. Thinking more about what the user is trying to do, they're likely not trying to get a summary of all of the logs - they probably want a summary of their deployment and overall runs. What about something like this:
What I like about having Otherwise, I like the overall direction for the other log commands. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
We would love to have a
logging
feature accessible via the CLI.meltano log list
(raw list of executions)List all the available logs (up to max count 'n'). Log list can be filtered by schedule name, job name, plugin name, or state ID.
meltano log summary
(deduped/aggregated)Would show a summary of all job and schedule names which have executed over the specified local period.
Summary should have columns for: latest execution start/end time, latest duration, latest log ID, latest job status (success/fail), and number of failures and success within the lookback period
meltano log print
Print a full log and exit.
meltano log tail
A more advanced version of
log print
. Start by printing 'n' log lines and continue to print any additional lines as they are emitted to the log.cc @tayloramurphy, @pandemicsyn
Log filtering
In addition to a GUID-like field for unique Log ID, we would ideally also want to be able to filter logs by the following fields:
To aid in filtering, we should ensure that log tables record all of these fields if possible as separate columns and (of the backend supports it) perhaps also as indexed columns.
Scalability and Remote Backend Support
We likely could first build this using systemdb as the backend for log summary & list operations and the local filesystem as the backend for detailed logs.
In future, we'd likely also want to support log backends using S3 and/or Cloudwatch, and we would want to also support a logging backend hosted on the future Meltano Cloud offering,
GUI and "Point and Click" option
By adding a
--format=json
CLI flag or similar to most/all of the above CLI commands, we'd also then be able to call them and render a nice UI in the future VS Code Meltano Extension.Other UIs could similarly be developed, but the VS Code option could be a very nice in-IDE log view experience, and could be run in the cloud using GitHub Codespaces.
Related to:
Beta Was this translation helpful? Give feedback.
All reactions