To gather your application logs from Kubernetes, follow the below steps:
Navigate to the Fleet > Template page and click Add Template
Select Kubernetes as the Platform, fill in a Template Name and Cluster Name, select the Enable Container Logs option, and click Create. Note: by default, observIQ will gather logs from all of your applications. You may specify a specific pod or container if you prefer to narrow the scope.
On the Template > [Template Name] page, click Add Agents.
On the Install Kubernetes Agents page, copy or download the observiq-agent.yaml, and use the provided kubectl command to deploy to your cluster.
After a few minutes, return to your Template. You'll see the Agents deployed to your Cluster, one for each Node (deployed as a Daemonset).
Return to the Explore page, you'll now see your Container logs flowing into observIQ!
Additionally, because you selected Container as an Option in your Template, you'll have the [oiq] k8s - Overview Dashboard and corresponding visualizations automatically installed to your account.
Updated over 1 year ago