:_mod-docs-content-type: ASSEMBLY
[id="viewing-pipeline-logs-using-the-openshift-logging-operator"]
= Viewing pipeline logs using the OpenShift Logging Operator
include::_attributes/common-attributes.adoc[]
:context: viewing-pipeline-logs-using-the-openshift-logging-operator

toc::[]

The logs generated by pipeline runs, task runs, and event listeners are stored in their respective pods. It is useful to review and analyze logs for troubleshooting and audits.

However, retaining the pods indefinitely leads to unnecessary resource consumption and cluttered namespaces.

To eliminate any dependency on the pods for viewing pipeline logs, you can use the OpenShift Elasticsearch Operator and the OpenShift Logging Operator. These Operators help you to view pipeline logs by using the link:https://www.elastic.co/guide/en/kibana/6.8/connect-to-elasticsearch.html[Elasticsearch Kibana] stack, even after you have deleted the pods that contained the logs.

[id="prerequisites_viewing-pipeline-logs-using-the-openshift-logging-operator"]
== Prerequisites

Before trying to view pipeline logs in a Kibana dashboard, ensure the following:

* The steps are performed by a cluster administrator.
* Logs for pipeline runs and task runs are available.
* The OpenShift Elasticsearch Operator and the OpenShift Logging Operator are installed.

include::modules/op-viewing-pipeline-logs-in-kibana.adoc[leveloffset=+1]

////
[role="_additional-resources"]
[id="additional-resources_viewing-pipeline-logs-using-the-openshift-logging-operator"]
== Additional resources
* xref :../../observability/logging/cluster-logging-deploying.adoc#cluster-logging-deploying[Installing OpenShift Logging]
* xref :../../observability/logging/log_visualization/log-visualization.adoc#log-visualization-resource-logs_log-visualization[Viewing logs for a resource]
* xref :../../observability/logging/log_visualization/logging-kibana.adoc#logging-kibana[Log visualization with Kibana]
////
