Skip to content

LogQL

Source: Log Queries | Grafana Loki LogQL Documentation

# Check logs with type error in pod
{ kubernetes_pod_name = "prod-connect-cluster-0" }
| json
| level = "error"
# Log lines that contain an error
{container="frontend"} |= "error"
# Filter on dates
{ kubernetes_pod_name = "prod-connect-cluster-0" } | json | level = "error"