To gather your application logs from a specific application on Kubernetes, for example NGINX or Tomcat, 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, then leave each of the logging/event options unselected and click 'Create'.
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
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 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.
Updated over 1 year ago