controller icon indicating copy to clipboard operation
controller copied to clipboard

feat(client): `deis logs -f`

Open deis-admin opened this issue 9 years ago • 16 comments

From @mboersma on January 15, 2014 21:6

Currently with deis you can run deis logs, but it's a single request-response that returns the current app logs and ends. Nor does deis run tail -f work since that isn't (yet) a long-running, duplex connection. Users should be able to get live tailing of logs.

This was requested by user kfarrell on IRC. See also #117.

Copied from original issue: deis/deis#465

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @nathansamson on January 15, 2014 22:52

Also a way to specify the number of line (-n) would be a nice addition.

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @bacongobbler on March 10, 2014 18:8

@nathansamson just pipe the output to tail:

$ deis logs | tail -n 1

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @nathansamson on March 10, 2014 19:8

@bacongobbler that would still be a performance problem (useless network traffic)

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @bacongobbler on June 16, 2014 16:40

I hope to solve this by streaming from the log file for changes. The issue with that is, again, WSGI does not support websockets or other long-running requests.

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @paralin on March 4, 2015 21:29

+1

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @jwaldrip on April 14, 2015 13:1

:+1:

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @bacongobbler on May 4, 2015 20:18

related comment: https://github.com/deis/deis/pull/3524#issuecomment-94201087

basically we could resolve this by enabling the controller to create a tail session in deis-logger, which then the controller would return the URL to the tail session in the response. The client would then connect to the session. This is very similar to Heroku's current infrastructure layout as shown in their client unit tests.

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @ethanmick on June 4, 2015 19:51

:+1:

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @LoicMahieu on July 1, 2015 14:31

+1

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @jeffday on August 12, 2015 0:53

+1

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @paralin on August 25, 2015 20:25

What's the progress of this?

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @bacongobbler on August 25, 2015 20:55

no work done other than what's been laid out here :)

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @carmstrong on August 25, 2015 21:17

@paralin This is blocked by the TTY broker on our open roadmap. If this feature is important to you, we'd love to see you at next Thursday's open roadmap meeting, and we can share more details about its progress and blockers. More details on our roadmap planning meetings: http://docs.deis.io/en/latest/roadmap/planning/

I'll be sending out the details on the meeting early next week to our deis-users mailing list. I'd encourage you to join that as well.

deis-admin avatar Jan 19 '17 20:01 deis-admin

From @dwelch2344 on October 23, 2015 5:36

+1

deis-admin avatar Jan 19 '17 20:01 deis-admin

For any one looking for this functionality, I have started some work on this: https://github.com/phuongnd08/deis-interactive

phuongnd08 avatar Jan 10 '18 10:01 phuongnd08

This issue was moved to teamhephy/controller#43

Cryptophobia avatar Mar 20 '18 17:03 Cryptophobia