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

Mixing stdout and stderr logs #2123

Closed
samber opened this issue Dec 16, 2016 · 2 comments · Fixed by #16556
Closed

Mixing stdout and stderr logs #2123

samber opened this issue Dec 16, 2016 · 2 comments · Fixed by #16556
Assignees

Comments

@samber
Copy link
Contributor

samber commented Dec 16, 2016

Hi guys,

I use the nomad logs -f command pretty often, to display stdout and stderr logs, but I always need to execute it two times. What about:

  • nomad logs -stdout: only logs on 1
  • nomad logs -stderr: only logs on 2
  • nomad logs: logs on 1 and 2

Docker respects this rule.

@mildred
Copy link
Contributor

mildred commented Sep 6, 2017

For tailing logs, this might be possible. Just like tail -f does. But for past logs, this is more complex. We have no way to order the logs between stdout and stderr. A timestamp might work on most cases but not all, and we do not store it anyway.

Perfect ordering can be made possible but I think you need to allocate a tty for stdout and stderr, a bit more complex than forwarding logs to a file.

Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants