Skip to content

Write logs both to stdout and to file #398

Answered by diafour
partemyeva asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Best practice in Kubernetes is gather logs at node level, so every application just print logs to stdout.
There is no need to configure logrus, you can achieve "logging to multiple locations" using custom entrypoint.sh with tee command in it and give filebeat a try right now.
May be you give more details? Why you need filebeat for shell-operator only?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@partemyeva
Comment options

@diafour
Comment options

@partemyeva
Comment options

Answer selected by diafour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants