11auth_enabled : false
22
33server :
4+ log_level : info
45 http_listen_port : 3100
5-
6+ grpc_server_max_recv_msg_size : 16777216 # 16MB (increase from 4MB default)
7+ grpc_server_max_send_msg_size : 16777216 # 16MB
68common :
79 path_prefix : /tmp/loki # Required for internal directories
810
@@ -29,16 +31,30 @@ storage_config:
2931 active_index_directory : /tmp/loki/tsdb-index # Local cache for index metadata
3032 cache_location : /tmp/loki/tsdb-cache # Local cache for tsdb
3133 aws :
32- s3 : s3:// ${S3_BUCKET_NAME_LOKI}
34+ bucketnames : ${S3_BUCKET_NAME_LOKI}
3335 region : ${S3_REGION_LOKI}
3436 access_key_id : ${S3_ACCESS_KEY_LOKI}
3537 secret_access_key : ${S3_SECRET_KEY_LOKI}
36- s3forcepathstyle : ${S3_FORCE_PATH_STYLE_LOKI} # Set to true if using MinIO or S3-compatible API; optional for AWS
37- endpoint : ${S3_ENDPOINT_LOKI} # Optional; use for non-default endpoints
38+ endpoint : ${S3_ENDPOINT_LOKI}
39+ s3forcepathstyle : true
3840
3941compactor :
4042 working_directory : /tmp/loki/compactor
4143 retention_enabled : false
4244
4345limits_config :
46+ reject_old_samples : true
47+ reject_old_samples_max_age : 4h
48+ max_cache_freshness_per_query : 10m
49+ split_queries_by_interval : 15m
50+ # for big logs tune
51+ per_stream_rate_limit : 512M
52+ per_stream_rate_limit_burst : 1024M
53+ cardinality_limit : 200000
54+ ingestion_burst_size_mb : 1000
55+ ingestion_rate_mb : 10000
56+ max_entries_limit_per_query : 1000000
57+ max_label_value_length : 20480
58+ max_label_name_length : 10240
59+ max_label_names_per_series : 300
4460 retention_period : ${LOKI_RETENTION_PERIOD} # must be >= 24h and multiple of index period (24h)
0 commit comments