steve icon indicating copy to clipboard operation
steve copied to clipboard

Logs are Unavailable

Open lmccarty5 opened this issue 1 year ago • 1 comments

SteVe Version : 3.6.0 Operating system : Ubuntu 22.04 Virtual Machine Running on Windows 11 Host JDK : java 21.0.2 on host

Expected Behavior

when hitting the log button on the steve web interface, a log will appear

Actual Behavior

a mostly blank page appears that says steve log unavailable not available

Steps to Reproduce the Problem

  1. open steve directory
  2. start docker
  3. open web interface
  4. hit logs button in top right
  5. get logs unavailable error

lmccarty5 avatar Jul 03 '24 19:07 lmccarty5

When running Steve with Docker, there is currently no log available in the web interface.

This is in line with the expected behavior when running "cloud" services, as outlined in the 12-factor methodology for building software-as-a-service applications. To address this, it is recommended to redirect the image output into a dedicated log service.

Furthermore, it may be advisable to hide the log link when it is not available.

juherr avatar Jul 04 '24 06:07 juherr

Do you have any documentation or resources that could help me with redirecting the image output to a dedicated log service?

lmccarty5 avatar Jul 05 '24 14:07 lmccarty5

You'll find many articles.

One of them https://sharmarajdaksh.github.io/blog/shoving-your-docker-logs-to-elk

juherr avatar Jul 05 '24 17:07 juherr