Integrations
Loki
Search logs from Grafana Loki
Search and analyze logs from Grafana Loki.
What Stalar can do
| Tool | Description |
|---|---|
| Query logs | Search logs with LogQL |
| Query range | Search logs over time ranges |
| List labels | Discover available log labels |
| Get label values | Get values for a specific label |
Configuration
Required
| Field | Description |
|---|---|
url | Loki server URL |
Optional
| Field | Description |
|---|---|
username | Basic auth username |
password | Basic auth password |
bearerToken | OAuth bearer token |
tenantId | X-Scope-OrgID for multi-tenant Loki |
Config file example
integrations:
- name: "loki-prod"
type: "loki"
environment: "production"
config:
url: "http://loki:3100"
# With authentication
- name: "loki-secure"
type: "loki"
environment: "production"
config:
url: "https://loki.example.com"
username: "admin"
password: "${LOKI_PASSWORD}"
# Multi-tenant Loki
- name: "loki-tenant"
type: "loki"
environment: "production"
config:
url: "https://loki.example.com"
bearerToken: "${LOKI_TOKEN}"
tenantId: "my-tenant"Example queries
- "Show me errors from the payment service"
- "What logs are there from the last 30 minutes?"
- "Find logs containing 'timeout'"
- "Show me logs around 2pm yesterday"