Download Kubernetes deploy manifest

Download the filebeat kubernetes deploy manifest using the link below:

Click to download filebeat-kubernetes.yaml

Insert your stack details

Open the manifest and around line 76 you should see the environment variables controlling the logging destination. You need to update them to point to your stack.

env:
- name: LOGSTASH_HOST
  value: "your-logstash-host"
- name: BEATS_PORT
  value: "your-port"

Deploy your pod

Now your deployment manifest is updated, you can deploy it using.

kubectl apply -f filebeat-kubernetes.yaml

Confirm the deployment has completed

kubectl --namespace=kube-system get ds/filebeat

kubectl --namespace=kube-system get pods

You should see a pod for each kubernetes node with a name similar to filebeat-abcde listed. The pods should work though from Pending to Running within a couple of minutes as the containers are downloaded and started.