/aks_tomcat_with_fluentbit_sidecar

Tomcat (openjdk11) Container w/ Fluent Bit as a side car to send telemetry from /usr/local/tomcat/logs to STDOUT via Fluent Bit where the AMA Daemon Set will then send the telemetry to ContainerLogV2

Primary LanguageShellMIT LicenseMIT

AKS - Tomcat w/ Fluent-bit (sidecar)

Azure Kubernetes Service (AKS)

  • Tomcat (openjdk11) Container w/ Fluent Bit as a sidecar to send telemetry from /usr/local/tomcat/logs to STDOUT where the Azure Monitor Agent (AMA) Daemon Set will then send the telemetry to ContainerLogV2
  1. Authenticate to AKS
kubectl create namespace tomcat
kubectl apply -f ./fluentbit-sidecar-cm.yaml
kubectl apply -f ./deployment.yaml
kubectl apply -f ./loadbalancer.yaml
kubectl get services -n tomcat

http://20.75.166.182

Refresh web page to generate traffic then validate via Log Analytics Workspace -> ContainerLogV2

Tomcat - Default WebApp

Fluent-Bit sending Tomcat Access Log via STDOUT

Fluent-Bit sending Tomcat Access Log to STDOUT

Log Analytics -- ContainerLogV2 :: Tomcat Access Log parsed.

Tomcat Access Logs