How to store loki logs into s3 please provide loki-config.yaml

i am getting issue with the yaml file, i reffered the documentation but not getting the right loki-config.yaml file to store logs on S3, please help

Can you share your current config.yaml file with us?

auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096

common:
  instance_addr: 127.0.0.1
  path_prefix: /tmp/loki
  storage:
    filesystem:
      chunks_directory: /tmp/loki/chunks
      rules_directory: /tmp/loki/rules
  replication_factor: 1
  ring:
    kvstore:
      store: inmemory

query_range:
  results_cache:
    cache:
      embedded_cache:
        enabled: true
        max_size_mb: 100

schema_config:
  configs:
    - from: 2020-10-24
      store: boltdb-shipper
      object_store: filesystem
      schema: v11
      index:
        prefix: index_
        period: 24h

ruler:
  alertmanager_url: http://localhost:9093

First of all, you are not even referencing S3 anywhere in your config. A good place to start would be to take a look at the AWS deployment (S3 Single Store) section of the documentation.

got it, now instead of boltdb-shipper i want to use tsdb and implemented in my config but in my s3 there are no files uploaded

this is my config

auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096

common:
  path_prefix: /tmp/loki
  storage:
    s3:
      s3: https://s3.us-east-2.amazonaws.com
      bucketnames: xxxxxx
      region: us-east-2
      access_key_id: xxxxxxxxx
      secret_access_key: xxxxxxxxxxx

  replication_factor: 1
  ring:
    kvstore:
      store: memberlist

schema_config:
  configs:
    - from: 2020-10-24
      store: tsdb
      object_store: s3
      schema: v11
      index:
        prefix: index_
        period: 24h

Sounds like it worked.

sorry for the typing mistake, files are not getting uploaded. Please provide the config yaml code, if mine is correct then why are the files not getting uploaded??

What do your Loki logs say? Any helpful message? If not, consider adjusting the log_level.