> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sawmills.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Grafana Loki Destination

> Forward logs to Grafana Loki from Sawmills with optional basic authentication, customizable default labels, and configurable endpoint URLs.

## Supported data types:

📘 **Logs** | 📈 **Metrics** | 🚦 **Traces**

## Configuration

| Field                            | Type    | Default | Required | Description                                                                                                                                                    |
| :------------------------------- | :------ | :------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                             | String  | none    | true     | Unique identifier within Sawmills.                                                                                                                             |
| Endpoint                         | String  | none    | true     | The target URL to send Loki log streams to (e.g., `http://loki:3100/loki/api/v1/push`).                                                                        |
| Enable Basic Auth                | Boolean | false   | true     | Toggle on to require Basic Auth. When enabled, you must provide a username and password.                                                                       |
| Username                         | String  | none    | false    | Username when using basic authentication.                                                                                                                      |
| Password                         | String  | none    | false    | Password when using basic authentication.                                                                                                                      |
| Customize Enabled Default Labels | Boolean | none    | false    | Select which default labels to include in logs. If omitted, all default labels are added. At least one label must be present; otherwise, logs will be dropped. |

## Authentication

Loki destination supports basic authentication, enable this by clicking on the `Enable Basic Auth` toggle and adding Username and Password
