Export logs from RHOCP Console using Loki as LogStore in RHOCP 4

Solution Verified - Updated -

Issue

  • How to export or download logs from the RHOCP Console while using Loki as a Log Store?
  • How to export logs from the RHOCP Console when used the Red Hat OpenShift Loki Log Store?
  • How to query Loki from the CLI?
  • Download logs in PDF or CSV format directly from RHOCP Console similar to the described in the article "Export OpenShift Container Platform Logs from Kibana or Elasticsearch" which provides the steps when Elasticsearch is used as LogStore.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5
    • 6
  • Cluster Observability Operator (COO)
  • Loki

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content