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

log-file and container logs #45

Open
angelbarrera92 opened this issue Oct 7, 2019 · 3 comments
Open

log-file and container logs #45

angelbarrera92 opened this issue Oct 7, 2019 · 3 comments

Comments

@angelbarrera92
Copy link

Hi!!

I do not know if this is an issue or a feature.

I see this tool provides the possibility to write its logs to a file using the --log-file flag and it works. But, the container logs are always printed in stdout as this line indicates:

https://github.com/boz/kail/blob/master/cmd/kail/main.go#L301

Is this a bug? Should container logs be written in the same file?

Thanks

@boz
Copy link
Owner

boz commented Oct 16, 2019

That flag is for kail logs, not for the container logs. Sorry, that could be made more clear.

I'm open to adding a flag for setting an output file. Alternatively, you can use shell redirection.

@angelbarrera92
Copy link
Author

I'll try with shell redirection first.

If it does not work, i can implement a new flag to write container logs to another file ;)

Thanks @boz

@angelbarrera92
Copy link
Author

Hi @boz

I tried as you described, shell redirection. So no need to implement the flag
(sorry the delay, my backlog is plenty of things). Here you can find an example:

https://github.com/angelbarrera92/loki-poc/blob/v2-kail/kail-deployment.yml

Thanks for your work.

Feel free to ask whatever you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants