

- Download the Loki binary for your OS from the official releases.
- Create a configuration YAML file for local operation.
- Start Loki with the config:
./loki -config.file=loki-local-config.yaml - Point your log shipper (promtail, fluentd, Vector, etc.) to
http://localhost:3100.
- The
serverblock sets the HTTP and gRPC listener ports. By default, Loki serves its HTTP API on3100and a gRPC listener commonly on9095or9096. - The
commonblock configures local disk layout (e.g.path_prefix: /tmp/loki) and usesreplication_factor: 1because this is a single-node local setup. schema_configselects the TSDB index schema, here set tov13.object_store: filesystemkeeps all data in a local directory. For production, use object stores such as Amazon S3, Google Cloud Storage, or Azure Blob Storage.auth_enabled: falsedisables authentication so requests are allowed without credentials — suitable for local testing but not for production.
Example minimal config (loki-local-config.yaml)
This configuration is intended for local development and learning. For production deployments, use a durable object store (S3/GCS/Azure Blob), increase replication, enable authentication/multi-tenancy, and follow best practices for high availability and retention.
- Grafana Loki releases
- Amazon S3 documentation
- Google Cloud Storage documentation
- Azure Blob Storage documentation
- Promtail (Loki agent) documentation