Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.65 KB

File metadata and controls

40 lines (22 loc) · 1.65 KB

Set up Cloud Log Streaming with Grafana Loki

Perform the following steps to set up log streaming with Grafana Loki.

  1. Create Loki Datasource if self-hosted Grafana is used. The Loki Datasource is created by default in the cloud version. Only basic authentication is supported at the moment.

loki_authentication.png

  1. Cloud version: create a new Cloud access policy with write logs permissions.

loki_cloud_access_policy.png

loki_create_policy.png

Generate API token for this policy.

loki_create_token.png

  1. Self-hosted version: create API key for your Loki user.
  2. Go to the MyJFrog Portal.
  3. Additionally, you can access the MyJFrog Portal from the JFrog Platform. For more information, see Platform Single Sign-On to MyJFrog.

Note: You must be a Platform Admin to access the MyJFrog Portal via the JFrog Platform.

Log into the JFrog Platform, and in the left navigation bar of the Application module, click MyJFrog Portal. This opens the MyJFrog Portal in a new tab in your browser.

  1. Select Settings from the left navigation menu.

  2. Select the JFrog Cloud Log Streaming tab.

  3. Turn on the Log Streaming toggle.

  4. Select Grafana loki.

loki.png

  1. Enter the Auth info in the format of username:API_key and Loki URL. Loki URL and username can be found in the Loki Datasource settings, in the Connection and Authentication sections.

  2. Click Save.