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

11881188

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

12711271

2) Add a Source to your Template

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

12641264

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.

12331233

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

546546

ca

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

11241124

On the Install Kubernetes Agents page, copy or download the observiq-agent.yaml, and use the provided kubectl command to deploy to your cluster.

12661266

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

11511151

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!

12471247

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.

12661266