Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access node logs as an artifact #7375

Open
sevberg opened this issue Dec 9, 2021 · 1 comment
Open

Access node logs as an artifact #7375

sevberg opened this issue Dec 9, 2021 · 1 comment
Labels
area/archive-logs Archive Logs feature area/artifacts S3/GCP/OSS/Git/HDFS etc type/feature Feature request

Comments

@sevberg
Copy link

sevberg commented Dec 9, 2021

Summary

Accessing a nodes output via steps.pipeline.outputs.result works great when a node's stdout is simple, but it doesn't work as well when the stdout is volumous or is complex (for example, a traceback with lots of odd characters). It also does not include contents of stderr. It would be nice if it were also possible to access the stdout/stderr outputs of a node as an artifact (e.g. under something like steps.pipeline.outputs.log_artifact), which can then be shared with follow-up tasks to do processing on that, post it somewhere, or send out specialized notifications.

To note, this is in principle possible already with the built-in artifacting system. But this requires first writing the logs to the external storage (e.g. S3), and then reading it back in in the next step. It would be nice if this was possible without leaving the k8s/argo domain.

Use Cases

When would you use this?

  • Automatic processing of error logs
  • Posting logs into a slack channel, or similar
  • Automated notifying of key individuals/teams depending on the contents of logs

Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@sevberg sevberg added the type/feature Feature request label Dec 9, 2021
@alexec alexec added the area/ui label Feb 7, 2022
@agilgur5 agilgur5 added area/artifacts S3/GCP/OSS/Git/HDFS etc and removed area/ui labels Oct 20, 2023
@agilgur5 agilgur5 added the area/archive-logs Archive Logs feature label Oct 16, 2024
@agilgur5
Copy link
Member

This is possible with the Archive Logs feature, although that's normally not recommended and the variables are normally internal too (see also #12065).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/archive-logs Archive Logs feature area/artifacts S3/GCP/OSS/Git/HDFS etc type/feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants