Get a DemoStart Free TrialSign In

Azure Kubernetes Logs

Collect and ship Azure Kubernetes container logs to Logstash and Elasticsearch.

Filebeat is a lightweight shipper that helps you monitor Azure Kubernetes Service by collecting logs from the containers running on the host system. Configure Filebeat using the pre-defined examples below to collect and ship Azure Kubernetes logs to Logstash or Elasticsearch.

Send Your DataLogsAzureAzure Kubernetes Logs Guide

Follow this step by step guide to get 'logs' from your system to

Step 1 - Download Filebeat Manifest File

Download the filebeat kubernetes deployment manifest using the link below:

Click to download filebeat-kubernetes.yaml

To do this on your Azure Cluster you can use the following command in the Azure Cloud Shell terminal.


Step 2 - Insert stack details

Now you have the manifest you're going to want to add your Stack details. Open the file in a text editor.

Locate the environment variables controlling the logging destination and enter your Stacks Logstash input information.

You need to change the environment variables around lines 54.

No input available! Your Stack is missing the required input for this data source Talk to support to add the input

Step 3 - Deploy Filebeat pod

Now your Filebeat deployment manifest is updated with your Stack details, you can deploy it using the following command in Azure Cloud Shell:

kubectl apply -f filebeat-kubernetes.yaml

Step 4 - Confirm deployment succesful

Confirm that your pod has successfully been deployed using one or all of the following commands in Azure Cloud Shell:

kubectl get po -A

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.

Step 5 - Check for your logs

Now you should view your data:

View my data

If you don't see logs take a look at How to diagnose no data in Stack below for how to diagnose common issues.

Step 6 - how to diagnose no data in Stack

If you don't see data appearing in your Stack after following the steps, visit the Help Centre guide for steps to diagnose no data appearing in your Stack or Chat to support now.

Return to Search
Sign Up

© 2023 Ltd, All rights reserved.