-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
add feature to log command to support only getting stdout or stderr as well as both #45
Comments
why not just normal redirection? |
yeah, let's be a good unix app and not reinvent standard infrastructure. |
I agree this seems like the way to go. What about in the future remote API - is there interest in getting On Mon, Mar 11, 2013 at 7:00 PM, Jeff Lindsay notifications@github.comwrote:
|
Oh I think absolutely. On Mon, Mar 11, 2013 at 9:12 PM, Solomon Hykes notifications@github.comwrote:
Jeff Lindsay |
i would not like to see logs through the remote api, imo it should just be for management, a simple human readable (think redis) api which you could telnet/nc to. using syslog or something should be much more efficient for log distribution, it shouldn't be a part of docker. if you mix logs in there you need a multiplexing/framing protocol.. On Tuesday 12 March 2013 at 10:12, Solomon Hykes wrote:
|
I also agree with Carl and would love a simple human readable Redis-style The remote interface wouldn't let you interact with a running container's I personally prefer to think in terms of more general "streams" as opposed Does that make sense? On Mon, Mar 11, 2013 at 9:19 PM, Carl Hörberg notifications@github.comwrote:
Jeff Lindsay |
Yes, it does make sense to think in terms of streams. In addition to logs, I have a specific design in mind for supporting streams in the api, based On Mon, Mar 11, 2013 at 7:39 PM, Jeff Lindsay notifications@github.comwrote:
|
my idea was not to implement syslog, but rather just pipe the output to "logger" or something.. then rsyslog on the host machine can either log it or forward it.. |
Got it. Yes, we will make this possible. On Mon, Mar 11, 2013 at 9:08 PM, Carl Hörberg notifications@github.comwrote:
|
+1 - treat logs as streams, not files.
i'm looking forward to this, as eventually i plan to integrate docker log streaming with logyard. at minimum, i'd expect something like the following for retrieving logs:
a simple tcp client is all that is required to read logs, and further process them (by sending it to external log aggregators, for instance). |
This is addressed in #725 (don't mix stdout and stderr in docker run in attached mode) |
Implement fallback for getting the size of a container
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Carry moby#45: Add etcd TLS client code and update README.md.
Carry moby#45: Add etcd TLS client code and update README.md.
right now the logs command shows both the standard out and standard error combined, it would be nice if you can pass a flag and see just stdout or stderr. If no flag default to both.
This is helpful if you have a process that has lots of logs, and you really only want to see error messages.
The text was updated successfully, but these errors were encountered: