How to send AKS logs into eventhub?

9/28/2019

What would be the best solution to stream AKS Container logs and cluster level logs to Azure Eventhub?

-- Mehrdad Abdolghafari
azure
kubernetes

2 Answers

3/10/2020

Experiencing the same issue, unable to forward the application logs directly to event hub. The work around is to create a rule to forward the logs to the storage account and create a rule to pick it up from storage blob and stream it real time to event hub. Creating a job to forward logs to storage account: https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-azure-event-hubs#add-action Stream logs from storage account to event hub: https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/tutorial-azure-monitor-stream-logs-to-event-hub

-- Fedor Gorin
Source: StackOverflow

9/28/2019

You can enable diagonistic logs and send those to eventhub

https://docs.microsoft.com/en-us/azure/aks/view-master-logs#enable-diagnostics-logs

-- Sajeetharan
Source: StackOverflow