Container Logs for a Specific Source/Application

Gather logs from your Applications running on k8s

To gather your application logs from a specific application on Kubernetes, for example NGINX or Tomcat, follow the below steps:

1) Create a Template

Navigate to the Fleet > Template page and click Add Template

Select Kubernetes as the Platform, fill in a Template Name and Cluster Name, then leave each of the logging/event options unselected and click 'Create'.

2) Add a Source to your Template

On the Template > [Template Name] page, click Add Source.

On the Choose Source Type page, select a Source that's running on Kubernetes that'd you like to gather logs from, such as NGINX.

Then fill out the Required Source configuration parameters, and click Create

ca

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).

3) Explore your logs

Return to the Explore page, you'll only see your logs from your application, in this case NGINX, flowing into observIQ!

Additionally, because you added NGINX as a Source to your Template, you'll have the [oiq] NGINX - Overview Dashboard and corresponding visualizations automatically installed to your account.