Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 924 Bytes

defining-template-for-external-log-link.adoc

File metadata and controls

32 lines (26 loc) · 924 Bytes

Defining a template for an external log link

If you are connected to a service that helps you browse your logs, but you need to generate URLs in a particular way, then you can define a template for your link.

Prerequisites
  • You must have administrator privileges.

Procedure
  1. From AdministrationCustom Resource Definitions, click on ConsoleExternalLogLink.

  2. Select Instances tab

  3. Click Create Console External Log Link and edit the file:

    apiVersion: console.openshift.io/v1
    kind: ConsoleExternalLogLink
    metadata:
      name: example
    spec:
      hrefTemplate: >-
        https://example.com/logs?resourceName=${resourceName}&containerName=${containerName}&resourceNamespace=${resourceNamespace}&podLabels=${podLabels}
      text: Example Logs