Blog

Integrating OpenShift Web Console 4.x with Monitoring OpenShift application in Splunk

1 min read Back to all posts
openshift splunk monitoring metrics logs

Compared to OpenShift 3.11, OpenShift 4.x looks completely different. In the first releases of OpenShift 4.x we suggested missing features, one of them was integration with the Web Console.

See github.com/openshift/console: Pod Log Links Extension.

For OpenShift 3.x look at Monitoring OpenShift in Splunk: integration with Web Console

In OpenShift version 4.2 we gained a feature for adding links to external logging solutions. So you can integrate the Web Console with our Monitoring OpenShift application in Splunk Enterprise or Splunk Cloud.

Let’s walk through the steps for integration.

Official OpenShift documentation is available at Defining a template for an external log link.

Navigate as suggested to the Custom Resource Definition, find ConsoleExternalLogLink. At the Instances tab, click on the button Create Console External Log Link

Web Console Integration

Define the YAML as in the example below (replace https://search.splunk.outcold.vmlocal:8000 with the URL of your Splunk Search Head).

Web Console Expects only https links.

yaml
1apiVersion: console.openshift.io/v1
2kind: ConsoleExternalLogLink
3metadata:
4  name: monitoring-openshift
5spec:
6  hrefTemplate: >-
7    https://search.splunk.outcold.vmlocal:8000/en-US/app/monitoringopenshift/search?q=search%20%60macro_openshift_logs%60%20openshift_pod_id%3D%22${resourceUID}%22%20openshift_container_name%3D%22${containerName}%22%20openshift_namespace%3D%22${resourceNamespace}%22
8  text: Monitoring OpenShift

After that, you can go to the Pod page in the OpenShift Web Console and open logs in Splunk

Web Console Integration Logs

When you click on Monitoring OpenShift, that will open a window with the logs in the Monitoring OpenShift application

Web Console Integration Logs

About Outcold Solutions

Outcold Solutions builds applications for Splunk Enterprise and Splunk Cloud. Our certified monitoring solutions, powered by Collectord, bring logs, metrics and events from Kubernetes, OpenShift and Docker clusters, Linux hosts and Windows containers into Splunk, with the dashboards and alerts that help developers watch their applications and operators keep their clusters healthy. Our search apps query Kubernetes and AWS live from the search bar, with nothing to ingest, and OS AI Agent puts the model you choose to work inside Splunk, with each user's own permissions. Since 2017 we have been helping businesses keep what they need to answer complex questions about their infrastructure in one place.

Red Hat
Splunk
AWS