auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096

common:
  instance_addr: 127.0.0.1
  path_prefix: /var/lib/loki
  storage:
    filesystem:
      chunks_directory: /var/lib/loki/chunks
      rules_directory: /var/lib/loki/rules
  replication_factor: 1
  ring:
    kvstore:
      store: inmemory

query_range:
  results_cache:
    cache:
      embedded_cache:
        enabled: true
        max_size_mb: 100

storage_config:
  tsdb_shipper:
    active_index_directory: /loki/index
    cache_location: /loki/index_cache
    cache_ttl: 24h
  aws:
    s3: s3://AWSACCESSKEYID:AWSKEYSECRET@us-east-1
    bucketnames: loki-storage-s3-bucketname

schema_config:
  configs:
    - from: 2020-10-24
      store: tsdb
      object_store: filesystem
      schema: v13
      index:
        prefix: index_
        period: 24h
    - from: 2024-08-30
      store: tsdb
      object_store: aws
      schema: v13
      index:
        prefix: index_
        period: 24h

limits_config:
  retention_period: 4320h # 180 days

compactor:
  working_directory: /loki/retention
  delete_request_store: aws
  retention_enabled: true
  compaction_interval: 10m
  retention_delete_delay: 2h
  retention_delete_worker_count: 100

frontend:
  encoding: protobuf

# If you would like to disable reporting, uncomment the following lines:
analytics:
  reporting_enabled: false
