Hell Loki team,
I am facing following issue. Please let me know solution. Also i have mentioned my config file. Retention period equal to 1day.
Observations in Grafana Loki UI :
Steps :
Access Grafana loki logs
Select service
Select “last 2 days” logs
Issue : Loki did not return 2 days logs as we had set the retention period 24 hrs. But expecting it should show current logs. It returns nothing.
Select “Last 24 hrs”
Observation:- Loki displays logs for particular service from the last 24hrs.It is working as expected.
Loki config file for retention period equal to 1.
auth_enabled: false
server:
http_listen_port: 3100
ingester:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: in memory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
max_transfer_retries: 1
schema_config:
configs:
from: 2018-04-15
store: boltdb
object_store: filesystem
schema: v9
index:
prefix: index_
period: 24h
storage_config:
boltdb:
directory: /tmp/loki/index
filesystem:
directory: /tmp/loki/chunks
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
chunk_store_config:
max_look_back_period: 0
table_manager:
chunk_tables_provisioning:
inactive_read_throughput: 0
inactive_write_throughput: 0
provisioned_read_throughput: 0
provisioned_write_throughput: 0
index_tables_provisioning:
inactive_read_throughput: 0
inactive_write_throughput: 0
provisioned_read_throughput: 0
provisioned_write_throughput: 0
retention_deletes_enabled: true
retention_period: 24h