grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.8k stars 3.43k forks source link

Key error while connecting to AWS s3 from loki #14089

Open phani040 opened 1 month ago

phani040 commented 1 month ago

Issues with storing the data to AWS S3 from loki. The error : "failed to read cluster seed file" err="failed to get s3 object: NoSuchKey: The specified key does not exist.\n\tstatus code: 404, request id: YJK8G8Q59PFQX49M, host id: 3IWUZ96OPIWdYJ9p8+zMRoSCGT4bd872+HCZpubM04PSKxPR2d5WHekPW7ZKJbX70xeMTX3LBSs="

But its uploaded one json file in my bucket with the name: loki_cluster_seed.json and it has the contents:

{"UID":"5287fd14-10eb-4e08-a48e-79bb90f7acf2","created_at":"2024-09-10T03:21:19.451436639Z","version":{"version":"2.9.10","revision":"7664eda07b","branch":"HEAD","buildUser":"root@98f97496e533","buildDate":"2024-08-09T18:28:28Z","goVersion":"go1.22.5"}}

My Loki config file is:

                    auth_enabled: false

                    server:
                      http_listen_port: 3100
                      log_level: debug

                    common:
                      ring:
                        instance_addr: 127.0.0.1
                        kvstore:
                          store: inmemory
                      replication_factor: 1
                      path_prefix: /loki

                    schema_config:
                      configs:
                      - from: 2020-05-15
                        store: tsdb
                        object_store: s3
                        schema: v13
                        index:
                          prefix: index_
                          period: 24h

                    storage_config:
                      tsdb_shipper:
                        active_index_directory: /loki/index
                        cache_location: /loki/index_cache
                      aws:
                        bucketnames: loki-bucket
                        region: us-west-2
                        access_key_id: ****************
                        secret_access_key: **************
                        insecure: false
                        http_config:
                          idle_conn_timeout: 90s
                          response_header_timeout: 0s
                          insecure_skip_verify: false
                        s3forcepathstyle: true

https://github.com/grafana/grafana/issues/new

JStickler commented 3 days ago

Configuration questions have a better chance of being answered if you ask them on the community forums.