loki start
To start a Loki instance in Docker or a Kubernetes cluster, run:
kurtosis loki start
This command starts a local Loki instance and restarts the Kurtosis engine with an updated configuration. The new configuration includes a log sink that routes logs to the local Loki instance.
If you also want a locally managed Grafana instance wired to the same Loki backend, use grafloki start instead.
Read more about sinks and how to export logs from Kurtosis.
Kurtosis Config allows configuring grafana-loki and should-enable-default-logs-sink configurations.
config-version: 5
should-send-metrics: true
kurtosis-clusters:
docker:
type: "docker"
grafana-loki:
grafana-image: "grafana/grafana:11.6.0"
loki-image: "grafana/loki:2.9.4"
# Starts Grafana and Loki before engine - useful if Grafana + Loki is the default logging setup
should-start-before-engine: true
# If set to false, Kurtosis will not collect logs in the default PersistentVolumeLogsDB
# Useful to save storage if leveraging external logging setups
should-enable-default-logs-sink: false