Fetching application logs through filebeat in kubernetes environment

Hi,

to your second question....you can use helm to install logstash on your kubernetes cluster.
This is the link to the logstash helm chart https://github.com/helm/charts/tree/master/stable/logstash and this is the link to the helm k8s package manager for installation/usage details https://helm.sh/ .

With this helm command I install logstash on my kubernetes cluster helm install stable/logstash --name logstash --namespace logging -f logstash_custom_values.yml --version 1.4.2

You also has to tell filebeat (filebeat.yml) where it can find logstash.

  output:
    file:
      enabled: false
    logstash:
      hosts: ["logstash:5044"]
      index: "filebeat-app"