Hello,
I’m new to loki, my collection is done even if I don’t have the information I’m looking for yet. However, when I want to see the previous logs I get this error:
Query error
invalid query, through < from (2021-10-11 11:54:30 +0000 UTC < 2021-10-11 11:54:33.553910071 +0000 UTC m=+265418.724858378)
Here is my loki configuration file :
auth_enabled: false
server:
http_listen_port: 3100
distributor:
ring:
kvstore:
store: memberlist
memberlist:
join_members:
- loki-memberlist
ingester:
lifecycler:
ring:
kvstore:
store: memberlist
replication_factor: 1
chunk_target_size: 1536000
max_chunk_age: 4h
chunk_idle_period: 4h
chunk_block_size: 262144
chunk_encoding: snappy
chunk_retain_period: 2h
max_transfer_retries: 0
limits_config:
enforce_metric_name: false
reject_old_samples: false
reject_old_samples_max_age: 730h
max_cache_freshness_per_query: 10m
retention_period: 48h
schema_config:
configs:
- from: 2020-09-07
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: loki_index_
period: 24h
storage_config:
boltdb_shipper:
shared_store: filesystem
active_index_directory: /var/loki/index
cache_location: /var/loki/cache
cache_ttl: 168h
index_gateway_client:
server_address: dns:///loki-index-gateway:9095
filesystem:
directory: /var/loki/chunks
chunk_store_config:
max_look_back_period: 10s
table_manager:
retention_deletes_enabled: false
retention_period: 0s
querier:
query_timeout: 10m
query_range:
align_queries_with_step: true
max_retries: 10
split_queries_by_interval: 15m
cache_results: true
results_cache:
cache:
enable_fifocache: true
fifocache:
max_size_items: 1024
validity: 24h
frontend_worker:
frontend_address: loki-query-frontend:9095
frontend:
log_queries_longer_than: 5s
compress_responses: true
tail_proxy_url: http://loki-querier:3100
compactor:
working_directory: /var/loki/compactor
shared_store: filesystem
compaction_interval: 5m
retention_enabled: true
retention_delete_delay: 24h
retention_delete_worker_count: 300
ruler:
storage:
type: local
local:
directory: /etc/loki/rules
ring:
kvstore:
store: memberlist
rule_path: /tmp/loki/scratch
alertmanager_url: http://prometheus-alertmanager.monitoring.svc.cluster.local
enable_api: true