-
Notifications
You must be signed in to change notification settings - Fork 10
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
write logs to stdout #17
Comments
Hey @geekflyer, Thanks for providing us with your feedback! Really helpful. This isn't something that has come up too often but always welcome great feedback for our product team. I believe (one of the reasons) we currently write logs into a file is because you (as the VividCortex user) can fetch the agent logs from inside the app on the 'Agents' page. I believe the If you keep the param as Let me know if that is helpful. I will discuss this a bit more internally as well. Look forward to connecting again soon! |
I see. Yeah well, I think keeping it as "file" and "fetching" the logs from the vividcortex app (by clicking the "get agent log" button) is imho not great of an experience compared to simply streaming the logs to stdout / stderr and then watching them via kubectl logs or via a central log aggregator / analytics solution. I'd argue that most folks which use kubernetes in production are already using some central log aggregator as kubernetes is otherwise hard to use in production at scale. We for example use Stackdriver Logging (which comes out of the box with GKE) and Scalyr and for me it is much more useful to see the logs in there. TLDR: For 95% of the users -log-type=stderr is the best default choice when running the agent in a container. |
Thanks for the additional feedback! Sharing this with our product team! |
@geekflyer - |
Hi,
currently it appears the agent writes the logs into a file inside the container which makes them hard to access and inspect and eventually hard to debug when something is going wrong (i.e. connection issues). Imho writing to a file makes little sense in combination with
-foreground
. It is very typical for containers (i.e. in kubernetes) to simply log to stdout / stderr.Via a bit of try and error I found the agent inside the container actually has a parameter
-log-type
and when setting this to-log-type=stderr
it actually writes logs to stderr which is more or less what I need (although I would prefer if it writes to stdout).So two requests:
Please change the default dockerfile to already include
-log-type=stderr
or something equivalent.Is the
-log-type
parameter documented somewhere? What are the possible values it has (i.e. is there something like stdout instead)?Thanks
The text was updated successfully, but these errors were encountered: