I'm writing my nodejs logs to a file using winston js and storing them on /tmp/logs
volume on my host node on GKE. Now, I'm trying to add the EFK Stack to store them and visualize them but my problem is that I'm new to the whole logging process and I'm facing troubles understanding the configuration of fluentd. I've tried to configure the stack on my local cluster with the help of this tutorial and did visualize the stdout
and stderr
logs of my containers but those of my winston files are not shown.
To do so:
- How should I tell fluentd to read
*.log
files that I'm storing under/tmp/logs
on the cluster? - What is the best way to install EFK stack on GKE cluster (ECK....) since I already have Elasticsearch and Kibana installed for production purposes. I'm thinking of isolating the new ones under a logging namespace but I also found that I can install the monitoring stack on a GCE machine directly.
- In terms of resource management, does the EFK stack require a lot of RAM, CPU...?
NB: GCP used to have Elastic gke logging on the marketplace that I wanted to try but it's not there anymore.