1

I am doing some experiments, as we are obviously losing log lines currently in our Kubernetes setup.

Now as a test, I built a small python script that outputs 500000 log lines one after the other.

When recording this with kubectl logs -f podname >log.txt it looks like some lines are missing. Actually as I am on a quite slow VPN connection here, could it be that these messages are just dropped somehow because of my network speed?

peez80
  • 1,583
  • 2
  • 15
  • 32
  • slow connection speed could be an issue. you could try running your python container on a local minikube instance and see whether lines will get dropped too when connection speed is not an issue or not – meaningqo Apr 13 '22 at 18:57
  • 2
    the logs are usually written to file on the node the container is running on to /var/log/containers/. You could check the logs there. You should probably also use a proper logging solution. fluent-bit for examples scapes those log files for you. – The Fool Apr 13 '22 at 19:32
  • consider using `fluent-bit` as also suggested in the above comment. the overhead of collecting/managing/intigrity/forwarding will be the task of the fluentd/fluent-bit. – P.... Apr 13 '22 at 19:36

0 Answers0