Hi Grafana community,
I’m running Loki on AWS ECS with S3 as the storage backend. My setup has 2 Loki instances using the same config file.
Problem:
- Logs that are ingested disappear from Grafana after restarting Loki.
Questions:
-
Could this be because I need to mount EFS for shared storage?
-
If I use EFS, can I mount the same EFS to both Loki instances safely?
-
Is there a configuration change I need to ensure logs are flushed to S3 properly before restart?
Here’s my current setup:
auth_enabled: false
server:
http_listen_port: 3005common:
path_prefix: /tmp/loki
ring:
kvstore:
store: memberlistmemberlist:
bind_port: 7946
join_members:
- loki.ecs-namespace.local
schema_config:
configs:
- from: 2020-10-24
store: tsdb
object_store: s3
schema: v13
index:
prefix: logs_
period: 24hstorage_config:
aws:
bucketnames: dev-monitoring-loki
region: us-west-1
s3forcepathstyle: false
tsdb_shipper:
active_index_directory: “/tmp/tsdb-index”
cache_location: “/tmp/tsdb-cache”pattern_ingester:
lifecycler:
min_ready_duration: 1singester:
lifecycler:
min_ready_duration: 1sfrontend:
scheduler_dns_lookup_period: 1s
address: 127.0.0.1query_scheduler:
use_scheduler_ring: false
Thanks for any guidance!